SV-268121r1131046_rule
V-268121
SRG-OS-000063-GPOS-00032
ANIX-00-000670
CAT II
10
Update the NixOS config, typically stored either in /etc/nixos/configuration.nix or /etc/nixos/flake.nix, to use a mode of 755 or less for directories under /etc/audit.
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify that the NixOS audit configuration directories have a mode of "755" or less permissive with the following commands:
$ sudo find -L /etc/audit -type d -exec stat -L -c "%a %n" {} \;
755 /etc/audit
If the audit configuration files have a mode more permissive than "755", this is a finding.
V-268121
False
ANIX-00-000670
Verify that the NixOS audit configuration directories have a mode of "755" or less permissive with the following commands:
$ sudo find -L /etc/audit -type d -exec stat -L -c "%a %n" {} \;
755 /etc/audit
If the audit configuration files have a mode more permissive than "755", this is a finding.
M
5658