SV-268106r1131014_rule
V-268106
SRG-OS-000047-GPOS-00023
ANIX-00-000450
CAT II
10
Configure NixOS to shut down by default upon audit failure (unless availability is an overriding concern).
If availability has been determined to be more important, and this decision is documented with the information system security officer (ISSO), configure the operating system to notify SA staff and ISSO staff in the event of an audit processing failure by setting the "disk_error_action" to "SYSLOG".
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix: (depending on configuration, "disk_error_action" can be set to "SYSLOG" or "SINGLE"):
environment.etc."audit/auditd.conf".text = [
''
disk_error_action = HALT
''
];
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS takes the appropriate action when an audit processing failure occurs.
Check that NixOS takes the appropriate action when an audit processing failure occurs with the following command:
$ sudo grep disk_error_action /etc/audit/auditd.conf
disk_error_action = HALT
If the value of the "disk_error_action" option is not "SYSLOG", "SINGLE", or "HALT", or the line is commented out, ask the system administrator (SA) to indicate how the system takes appropriate action when an audit process failure occurs. If there is no evidence of appropriate action, this is a finding.
V-268106
False
ANIX-00-000450
Verify NixOS takes the appropriate action when an audit processing failure occurs.
Check that NixOS takes the appropriate action when an audit processing failure occurs with the following command:
$ sudo grep disk_error_action /etc/audit/auditd.conf
disk_error_action = HALT
If the value of the "disk_error_action" option is not "SYSLOG", "SINGLE", or "HALT", or the line is commented out, ask the system administrator (SA) to indicate how the system takes appropriate action when an audit process failure occurs. If there is no evidence of appropriate action, this is a finding.
M
5658