Clarified permissions check

This commit is contained in:
mboelen 2014-09-04 20:40:02 +02:00
parent 7af9a9e88c
commit 9a572ad3e6
1 changed files with 1 additions and 0 deletions

1
lynis
View File

@ -87,6 +87,7 @@
#################################################################################
#
# Perform a basic check for permissions. After including functions, using SafePerms()
# Optimization: remove ls -l for owner and only do UID check, reducing one getpwent
PERMS=`ls -l ${INCLUDEDIR}/consts | cut -c 2-10`
PERMS2=`ls -l ${INCLUDEDIR}/functions | cut -c 2-10`
OWNER=`ls -l ${INCLUDEDIR}/consts | awk -F" " '{ print $3 }'`