Skip to content

Commit

Permalink
modify template of audit_login_events
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtapolasek committed Sep 3, 2024
1 parent 19478bf commit 3a9b6c4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# packages = audit

. $SHARED/auditd_utils.sh

echo "-w $path -p wa -k logins" >> /etc/audit/audit.rules
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
setup_auditctl_environment
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# packages = audit

. $SHARED/auditd_utils.sh

echo "-w $path -p wra -k logins" >> /etc/audit/audit.rules
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
setup_auditctl_environment
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# packages = audit

. $SHARED/auditd_utils.sh

echo "-w $path -p wa" >> /etc/audit/audit.rules
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
setup_auditctl_environment
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# packages = audit

. $SHARED/auditd_utils.sh

rm -f /etc/audit/audit.rules
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
setup_auditctl_environment
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# packages = audit

. $SHARED/auditd_utils.sh

echo "-w $path -p w -k logins" >> /etc/audit/audit.rules
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
setup_auditctl_environment
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# packages = audit

. $SHARED/auditd_utils.sh

echo "-w $path -p w" >> /etc/audit/audit.rules
sed -i "s%^ExecStartPost=.*%ExecStartPost=-/sbin/auditctl%" /usr/lib/systemd/system/auditd.service
setup_auditctl_environment

0 comments on commit 3a9b6c4

Please sign in to comment.