Add hardening points properly to umask tests

This commit is contained in:
mboelen 2015-09-16 17:01:17 +02:00
parent d786c687a1
commit 91c9760598
1 changed files with 4 additions and 1 deletions

View File

@ -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