mirror of https://github.com/CISOfy/lynis.git
Clarified permissions check
This commit is contained in:
parent
7af9a9e88c
commit
9a572ad3e6
1
lynis
1
lynis
|
@ -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 }'`
|
||||
|
|
Loading…
Reference in New Issue