Skip to content

Commit

Permalink
remove setup of augenrules-like environment in audit_rules_privileged…
Browse files Browse the repository at this point in the history
…_commands template

Augenrules is default option as far as I know. This is the only case of test scenarios where this is set.
I decided to remove it.
  • Loading branch information
vojtapolasek committed Sep 4, 2024
1 parent 231dc7c commit d25fc4c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

source common.sh

sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/augenrules%" /usr/lib/systemd/system/auditd.service

echo \
"# -a always,exit -F path={{{ PATH }}} ${perm_x} -F auid>={{{ auid }}} -F auid!=unset -k test_key" \
>> /etc/audit/rules.d/test_key.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

source common.sh

sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/augenrules%" /usr/lib/systemd/system/auditd.service

echo \
"-a always,exit -F path={{{ PATH }}} ${perm_x} -F auid>={{{ auid }}} -F auid!=unset -k test_key" \
>> /etc/audit/rules.d/test_key.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

source common.sh

sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/augenrules%" /usr/lib/systemd/system/auditd.service

echo "-a always,exit -F path={{{ PATH }}} ${perm_x} -k test_key" >> /etc/audit/rules.d/test_key.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@

source common.sh

sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/augenrules%" /usr/lib/systemd/system/auditd.service

echo "-a always,exit -F path={{{ PATH }}} -F auid>={{{ auid }}} -F auid!=unset -k test_key" \
>> /etc/audit/rules.d/test_key.rules

0 comments on commit d25fc4c

Please sign in to comment.