Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lynis
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-09-04 22:40:02 +0400
committermboelen <michael@cisofy.com>2014-09-04 22:40:02 +0400
commit9a572ad3e6cbe44a36c2862aa19a115cccd03829 (patch)
tree7b245db1a72a831453e7c0dedea08199ad0952a0 /lynis
parent7af9a9e88c6d625ece35c8c175a5848e8d720c4c (diff)
Clarified permissions check
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis1
1 files changed, 1 insertions, 0 deletions
diff --git a/lynis b/lynis
index 2a797ff3..4a0841c0 100755
--- a/lynis
+++ b/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 }'`