mirror of https://github.com/CISOfy/lynis.git
Add hardening points properly to umask tests
This commit is contained in:
parent
d786c687a1
commit
91c9760598
|
@ -822,8 +822,10 @@
|
|||
if [ ! "${FIND}" = "077" -a ! "${FIND}" = "027" ]; then
|
||||
logtext "Result: found umask ${FIND}, which could be more strict"
|
||||
WEAK_UMASK=1
|
||||
AddHP 1 2
|
||||
else
|
||||
logtext "Result: found umask ${FIND}, which is fine"
|
||||
AddHP 2 2
|
||||
fi
|
||||
# Found more than 1 umask value in profile
|
||||
else
|
||||
|
@ -833,11 +835,12 @@
|
|||
if [ ! "${I}" = "077" -a ! "${I}" = "027" ]; then
|
||||
logtext "Result: umask ${I} could be more strict"
|
||||
WEAK_UMASK=1
|
||||
AddHP 1 2
|
||||
else
|
||||
logtext "Result: Found umask ${I}, which is fine"
|
||||
AddHP 2 2
|
||||
fi
|
||||
done
|
||||
AddHP 1 2
|
||||
fi
|
||||
|
||||
if [ ${FOUND_UMASK} -eq 1 ]; then
|
||||
|
|
Loading…
Reference in New Issue