mirror of https://github.com/CISOfy/lynis.git
Code cleanup
This commit is contained in:
parent
8a637d588b
commit
a145b0091a
|
@ -1030,10 +1030,10 @@
|
||||||
logtext "Test: Checking /etc/login.defs"
|
logtext "Test: Checking /etc/login.defs"
|
||||||
if [ -f /etc/login.defs ]; then
|
if [ -f /etc/login.defs ]; then
|
||||||
logtext "Result: file /etc/profile exists"
|
logtext "Result: file /etc/profile exists"
|
||||||
logtext "Test: Checking UMASK value in /etc/login.defs"
|
logtext "Test: Checking umask value in /etc/login.defs"
|
||||||
FIND=`grep "^UMASK" /etc/login.defs | awk '{ print $2 }'`
|
FIND=`grep "^UMASK" /etc/login.defs | awk '{ print $2 }'`
|
||||||
if [ "${FIND}" = "" ]; then
|
if [ "${FIND}" = "" ]; then
|
||||||
logtext "Result: UMASK value is not configured (most likely it will have the default 022 value)"
|
logtext "Result: umask value is not configured (most likely it will have the default 022 value)"
|
||||||
Display --indent 4 --text "- Checking umask (/etc/login.defs)" --result SUGGESTION --color YELLOW
|
Display --indent 4 --text "- Checking umask (/etc/login.defs)" --result SUGGESTION --color YELLOW
|
||||||
ReportSuggestion ${TEST_NO} "Default umask in /etc/login.defs could not be found and defaults usually to 022, which could be more strict like 027"
|
ReportSuggestion ${TEST_NO} "Default umask in /etc/login.defs could not be found and defaults usually to 022, which could be more strict like 027"
|
||||||
AddHP 1 2
|
AddHP 1 2
|
||||||
|
@ -1068,7 +1068,6 @@
|
||||||
logtext "Result: found umask ${FIND}, which could be improved"
|
logtext "Result: found umask ${FIND}, which could be improved"
|
||||||
Display --indent 4 --text "- Checking umask (/etc/init.d/functions)" --result SUGGESTION --color YELLOW
|
Display --indent 4 --text "- Checking umask (/etc/init.d/functions)" --result SUGGESTION --color YELLOW
|
||||||
AddHP 0 2
|
AddHP 0 2
|
||||||
#YYY
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
logtext "Result: file /etc/init.d/functions does not exist"
|
logtext "Result: file /etc/init.d/functions does not exist"
|
||||||
|
@ -1183,7 +1182,6 @@
|
||||||
else
|
else
|
||||||
Display --indent 2 --text "- Checking account locking" --result "NOT ENABLED" --color YELLOW
|
Display --indent 2 --text "- Checking account locking" --result "NOT ENABLED" --color YELLOW
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
Loading…
Reference in New Issue