NixOS system configuration files and directories must be group-owned by root.
An XCCDF Rule
Description
Without the capability to restrict the roles and individuals that can select which events are audited, unauthorized personnel may be able to prevent the auditing of critical events. Misconfigured audits may degrade the system's performance by overwhelming the audit log. Misconfigured audits may also make it more difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.
- ID
- SV-268123r1039257_rule
- Version
- ANIX-00-000690
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
Configure the NixOS system configuration files and directories to be group-owned by root by using the following command:
$ sudo find /etc/nixos -exec chown -R :root {} \;
Rebuild the NixOS configuration with the following command:
$ sudo nixos-rebuild switch