From 9a572ad3e6cbe44a36c2862aa19a115cccd03829 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 4 Sep 2014 20:40:02 +0200 Subject: [PATCH] Clarified permissions check --- lynis | 1 + 1 file changed, 1 insertion(+) 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 }'`