Information
Monitor the use of system calls associated with the deletion or renaming of files and file attributes. This configuration statement sets up monitoring for:
- unlink - remove a file
- unlinkat - remove a file attribute
- rename - rename a file
- renameat rename a file attributesystem calls and tags them with the identifier "delete".
Monitoring these calls from non-privileged users could provide a system administrator with evidence that inappropriate removal of files and file attributes associated with protected files is occurring. While this audit option will look at all events, system administrators will want to look for specific privileged files that are being deleted or altered.
Solution
Edit the file /etc/security/audit_control, with the relevant rules to monitor system calls related to file deletion.
Modify the flags directive to match the following:
flags:fd
This flag should be added if there were other flags previously configured rather than replacing the entire line.