Anyway, my organization has a goal to audit several things; of which I know how to manage most, for examples:
...
~]# ls -1 /usr/share/doc/audit-2.4.1/*rules
/usr/share/doc/audit-2.4.1/capp.rules
/usr/share/doc/audit-2.4.1/lspp.rules
/usr/share/doc/audit-2.4.1/nispom.rules
/usr/share/doc/audit-2.4.1/stig.rules
~]# ls /usr/share/doc/audit/rules/
10-base-config.rules 32-power-abuse.rules
10-no-audit.rules 40-local.rules
11-loginuid.rules 41-containers.rules
12-cont-fail.rules 42-injection.rules
12-ignore-error.rules 43-module-load.rules
20-dont-audit.rules 70-einval.rules
21-no32bit.rules 71-networking.rules
22-ignore-chrony.rules 99-finalize.rules
30-nispom.rules Makefile
30-pci-dss-v31.rules Makefile.am
30-stig.rules Makefile.in
31-privileged.rules README-rules
For these I would have used a watch (-w) rule and set the -p flags to r, w or a as shown above. From what I understand though, correct me if I am wrong Steve, we should be getting away from the watch rules and move towards Syscalls and using -F path=/path/to/file, or
-F path=/path/to/several_files/ -- is this correct, both for RHEL6 and RHEL7?
Also, I need to audit (Success/Failure) for the following sort of things:AuthenticationsLogonsLogoffs
## Audit 1, 1(b) Successful and unsuccessful logons and logoffs.
## This is covered by patches to login, gdm, and openssh
## Might also want to watch these files if needing extra information
#-w /var/log/tallylog -p wa -k logins
#-w /var/run/faillock/ -p wa -k logins
#-w /var/log/lastlog -p wa -k logins
#-w /var/log/btmp -p wa -k logins
#-w /var/run/utmp -p wa -k logins
## (GEN002720-GEN002840: CAT II) (Previously – G100-G106) The SA will
## configure the auditing system to audit the following events for all
## users and root:
##
## - Logon (unsuccessful and successful) and logout (successful)
##
## Handled by pam, sshd, login, and gdm
## Might also want to watch these files if needing extra information
#-w /var/log/tallylog -p wa -k logins
#-w /var/run/faillock/ -p wa -k logins
#-w /var/log/lastlog -p wa -k logins
##- Process and session initiation (unsuccessful and successful)
##
## The session initiation is audited by pam without any rules needed.
## Might also want to watch this file if needing extra information
#-w /var/run/utmp -p wa -k session
#-w /var/log/btmp -p wa -k session
#-w /var/log/wtmp -p wa -k session
Writes/downloads to external devices/mediaUploads from external devices/media (such as DvD, thumbdrive, etc)
##- Export to media (successful)
## You have to mount media before using it. You must disable all automounting
## so that its done manually in order to get the correct user requesting the
## export
-a always,exit -F arch=b32 -S mount -F auid>=1000 -F auid!=4294967295 -F key=export
-a always,exit -F arch=b64 -S mount -F auid>=1000 -F auid!=4294967295 -F key=export
User & Group eventsUser: Creation, deletion, Modification, suspending/lockingGroup/Role: Creation, deletion, modification
Use of Privileged/Special Rights events (such as sudo, su, etc..)
Printing to a print-devicePrinting to a file