SV-268110r1131025_rule
V-268110
SRG-OS-000057-GPOS-00027
ANIX-00-000520
CAT II
10
Configure the audit daemon to generate logs that are group-owned by root.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
environment.etc."audit/auditd.conf".text = [
''
log_group = root
''
];
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify the audit daemon is configured to generate logs that are group-owned by root with the following command:
$ sudo grep log_group /etc/audit/auditd.conf
log_group = root
If the audit daemon is not configured to generate logs that are group-owned by "root", this is a finding.
V-268110
False
ANIX-00-000520
Verify the audit daemon is configured to generate logs that are group-owned by root with the following command:
$ sudo grep log_group /etc/audit/auditd.conf
log_group = root
If the audit daemon is not configured to generate logs that are group-owned by "root", this is a finding.
M
5658