diff --git a/bin/hardening/4.1.12_record_privileged_commands.sh b/bin/hardening/4.1.12_record_privileged_commands.sh index edca803..b96090f 100755 --- a/bin/hardening/4.1.12_record_privileged_commands.sh +++ b/bin/hardening/4.1.12_record_privileged_commands.sh @@ -19,9 +19,8 @@ DESCRIPTION="Collect use of privileged commands." # Find all files with setuid or setgid set SUDO_CMD='sudo -n' -AUDIT_PARAMS=$($SUDO_CMD find / -xdev \( -perm -4000 -o -perm -2000 \) -type f | awk '{print \ -"-a always,exit -F path=" $1 " -F perm=x -F auid>=1000 -F auid!=4294967295 \ --k privileged" }') +AUDIT_PARAMS=$($SUDO_CMD find / -xdev \( -perm -4000 -o -perm -2000 \) -type f | \ +awk '{print "-a always,exit -F path=" $1 " -F perm=x -F auid>=1000 -F auid!=4294967295 -k privileged" }') FILE='/etc/audit/audit.rules' # This function will be called if the script status is on enabled / audit mode