Skip to content

Commit

Permalink
Makefile (audit): FORCE /etc/audit/rules.d/31-privileged.rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Oct 26, 2024
1 parent 4408035 commit 2a19ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ aircrack-apparmor-profiles: $(aircrack-apparmor-profiles)
/etc/audit/audit.rules: FORCE
/sbin/augenrules

/etc/audit/rules.d/31-privileged.rules:
/etc/audit/rules.d/31-privileged.rules: FORCE
find /bin -type f \( -perm -04000 -o -perm -02000 \) 2>/dev/null | awk '{ printf "-a always,exit -F path=%s -F perm=x -F auid>=1000 -F auid!=4294967295 -F key=privileged\n", $$1 }' > $@
find /sbin -type f \( -perm -04000 -o -perm -02000 \) 2>/dev/null | awk '{ printf "-a always,exit -F path=%s -F perm=x -F auid>=1000 -F auid!=4294967295 -F key=privileged\n", $$1 }' >> $@
find /usr/bin -type f \( -perm -04000 -o -perm -02000 \) 2>/dev/null | awk '{ printf "-a always,exit -F path=%s -F perm=x -F auid>=1000 -F auid!=4294967295 -F key=privileged\n", $$1 }' >> $@
Expand Down

0 comments on commit 2a19ccd

Please sign in to comment.