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 }'`