mirror of https://github.com/CISOfy/lynis.git
Style and log improvements
This commit is contained in:
parent
f389cc5d99
commit
c0f9c0ab84
|
@ -423,7 +423,7 @@ if [ $# -gt 0 ]; then
|
|||
if [ -z "${SKIP_TESTS}" ]; then
|
||||
${ECHOCMD} " Profile: ${GREEN}Yes${NORMAL} (not configured)"
|
||||
else
|
||||
FIND=$(echo ${SKIP_TESTS} | egrep "${TEST}")
|
||||
FIND=$(echo ${SKIP_TESTS} | grep -E "${TEST}")
|
||||
if [ -z "${FIND}" ]; then
|
||||
${ECHOCMD} " Profile: ${GREEN}Yes${NORMAL} (test not marked to be skipped)"
|
||||
else
|
||||
|
|
|
@ -496,7 +496,7 @@
|
|||
Register --test-no INSE-8050 --os "macOS" --preqs-met ${PREQS_MET} --skip-reason "${SKIPREASON}" --weight M --network NO --category security --description "Check for insecure services on macOS"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
TEST_SERVICES="com.apple.fingerd com.apple.ftp-proxy"
|
||||
for ITEM in "${TEST_SERVICES}"; do
|
||||
for ITEM in ${TEST_SERVICES}; do
|
||||
if ${LAUNCHCTL_BINARY} list | ${GREPBINARY} -sq ${ITEM}; then
|
||||
Display --indent 2 --text "- ${ITEM}" --result "${STATUS_NO}" --color RED
|
||||
LogText "Result: found ${ITEM}, which is considered an insecure service"
|
||||
|
|
|
@ -618,7 +618,7 @@
|
|||
DATA=$(${EGREPBINARY} -v '^(#|$)' ${ROOTDIR}etc/hosts | ${EGREPBINARY} '^(localhost|::1)\s' | ${GREPBINARY} -w ${HOSTNAME})
|
||||
if [ -n "${DATA}" ]; then
|
||||
LogText "Result: Found this server hostname mapped to a local address"
|
||||
LogText "Output: ${sFIND}"
|
||||
LogText "Output: ${DATA}"
|
||||
Display --indent 4 --text "- Hostname mapped to localhost" --result "${STATUS_FOUND}" --color YELLOW
|
||||
LogText "Information: Linking the hostname to the localhost entry may break some resolving. Split resolving so that localhost resolves back to 127.0.0.1 (and ::1) and the hostname of the machine to the real IP address on the network interface."
|
||||
ReportSuggestion ${TEST_NO} "Split resolving between localhost and the hostname of the system"
|
||||
|
|
Loading…
Reference in New Issue