SV-275725r1148225_rule
V-275725
SRG-OS-000480-GPOS-00227
RIIM-OS-654190
CAT II
10
Configure Ubuntu OS 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 OS 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-275725
False
RIIM-OS-654190
Verify Ubuntu OS 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
5706