SV-260640r991589_rule
V-260640
SRG-OS-000480-GPOS-00227
UBTU-22-654190
CAT II
10
Configure Ubuntu 22.04 LTS to generate audit records for events that affect "/var/log/journal".
Add or modify the following line to "/etc/audit/rules.d/stig.rules":
-w /var/log/journal -p wa -k systemd_journal
To reload the rules file, issue the following command:
$ sudo augenrules --load
Note: The "-k <keyname>" at the end of the line gives the rule a unique meaning to help during an audit investigation. The <keyname> does not need to match the example above.
Verify Ubuntu 22.04 LTS generates audit records for all events that affect "/var/log/journal" by using the following command:
$ sudo auditctl -l | grep journal
-w /var/log/journal -p wa -k systemd_journal
If the command does not return a line that matches the example or the line is commented out, this is a finding.
Note: The "-k" value is arbitrary and can be different from the example output above.
V-260640
False
UBTU-22-654190
Verify Ubuntu 22.04 LTS generates audit records for all events that affect "/var/log/journal" by using the following command:
$ sudo auditctl -l | grep journal
-w /var/log/journal -p wa -k systemd_journal
If the command does not return a line that matches the example or the line is commented out, this is a finding.
Note: The "-k" value is arbitrary and can be different from the example output above.
M
5594