SV-268105r1131012_rule
V-268105
SRG-OS-000047-GPOS-00023
ANIX-00-000440
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 information system security officer (ISSO) staff in the event of an audit processing failure by setting the "disk_full_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_full_action" can be set to "SYSLOG" or "SINGLE")
environment.etc."audit/auditd.conf".text = [
''
disk_full_action = HALT
''
];
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS takes the appropriate action when the audit storage volume is full.
Check that NixOS takes the appropriate action when the audit storage volume is full using the following command:
$ sudo grep disk_full_action /etc/audit/auditd.conf
disk_full_action = HALT
If the value of the "disk_full_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 storage volume is full. If there is no evidence of appropriate action, this is a finding.
V-268105
False
ANIX-00-000440
Verify NixOS takes the appropriate action when the audit storage volume is full.
Check that NixOS takes the appropriate action when the audit storage volume is full using the following command:
$ sudo grep disk_full_action /etc/audit/auditd.conf
disk_full_action = HALT
If the value of the "disk_full_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 storage volume is full. If there is no evidence of appropriate action, this is a finding.
M
5658