diff options
author | mboelen <michael@cisofy.com> | 2015-12-21 23:17:15 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-12-21 23:17:15 +0300 |
commit | d16b38eff83a8dca405e21e1c34205289f3d0832 (patch) | |
tree | d9db1eac3d4ead003f0e1b4fbfbabf0ddeb66c1e /include/tests_insecure_services | |
parent | 83a44827e03543146e39c37c33f14ebca6f40a29 (diff) |
Rename of logtext and report functions, upcoming year change
Diffstat (limited to 'include/tests_insecure_services')
-rw-r--r-- | include/tests_insecure_services | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/tests_insecure_services b/include/tests_insecure_services index d529f959..a4feb52c 100644 --- a/include/tests_insecure_services +++ b/include/tests_insecure_services @@ -5,7 +5,7 @@ # Lynis # ------------------ # -# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com) +# Copyright 2007-2016, Michael Boelen, CISOfy (michael.boelen@cisofy.com) # Web site: https://cisofy.com # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are @@ -32,14 +32,14 @@ Register --test-no INSE-8002 --weight L --network NO --description "Check for enabled inet daemon" if [ ${SKIPTEST} -eq 0 ]; then # Check running processes - logtext "Test: Searching for active inet daemon" + LogText "Test: Searching for active inet daemon" IsRunning inetd if [ ${RUNNING} -eq 1 ]; then - logtext "Result: inetd is running" + LogText "Result: inetd is running" Display --indent 2 --text "- Checking inetd status" --result ACTIVE --color GREEN INETD_ACTIVE=1 else - logtext "Result: inetd is NOT running" + LogText "Result: inetd is NOT running" Display --indent 2 --text "- Checking inetd status" --result "NOT ACTIVE" --color GREEN fi fi @@ -52,12 +52,12 @@ Register --test-no INSE-8004 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for enabled inet daemon" if [ ${SKIPTEST} -eq 0 ]; then # Check configuration file - logtext "Test: Searching for file ${INETD_CONFIG_FILE}" + LogText "Test: Searching for file ${INETD_CONFIG_FILE}" if [ -f ${INETD_CONFIG_FILE} ]; then - logtext "Result: ${INETD_CONFIG_FILE} exists" + LogText "Result: ${INETD_CONFIG_FILE} exists" Display --indent 4 --text "- Checking inetd.conf" --result FOUND --color WHITE else - logtext "Result: ${INETD_CONFIG_FILE} does not exist" + LogText "Result: ${INETD_CONFIG_FILE} does not exist" Display --indent 4 --text "- Checking inetd.conf" --result "NOT FOUND" --color WHITE fi fi @@ -70,7 +70,7 @@ Register --test-no INSE-8006 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check configuration of inetd when disabled" if [ ${SKIPTEST} -eq 0 ]; then # Check if any service is enabled in /etc/inetd.conf (inetd is not active, see test 8002) - logtext "Test: check if all services are disabled if inetd is disabled" + LogText "Test: check if all services are disabled if inetd is disabled" FIND=`grep -v "^#" ${INETD_CONFIG_FILE} | grep -v "^$"` if [ "${FIND}" = "" ]; then Display --indent 4 --text "- Checking inetd.conf services" --result OK --color GREEN @@ -87,14 +87,14 @@ if [ ${INETD_ACTIVE} -eq 1 -a -f ${INETD_CONFIG_FILE} ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no INSE-8016 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for telnet via inetd" if [ ${SKIPTEST} -eq 0 ]; then - logtext "Test: checking telnet presence in inetd configuration" + LogText "Test: checking telnet presence in inetd configuration" FIND=`grep "^telnet" ${INETD_CONFIG_FILE}` if [ "${FIND}" = "" ]; then - logtext "Result: telnet not enabled in ${INETD_CONFIG_FILE}" + LogText "Result: telnet not enabled in ${INETD_CONFIG_FILE}" Display --indent 2 --text "- Checking inetd (telnet)" --result "NOT FOUND" --color GREEN AddHP 3 3 else - logtext "Result: telnet enabled in ${INETD_CONFIG_FILE}" + LogText "Result: telnet enabled in ${INETD_CONFIG_FILE}" Display --indent 2 --text "- Checking inetd (telnet)" --result WARNING --color RED ReportSuggestion "${TEST_NO}" "Disable telnet in inetd configuration and use SSH instead" AddHP 1 3 @@ -108,4 +108,4 @@ wait_for_keypress # #================================================================================ -# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com +# Lynis - Copyright 2007-2016, Michael Boelen, CISOfy - https://cisofy.com |