How to audit the creation of symlinks ?
Issue
- Need to register the creation of links in the audit.log, mainly the unsuccessful ones.
-
The followung rules in audit.rules were tried without success:
# auditctl -a always,exit -F arch=b64 -S link -S symlink -F success=0 -F key=failed_link_creation # auditclt -a always,exit -F arch=b64 -S link,symlink -F key=link_events -
No entries appear in audit.log or when using ausearch
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.