SV-268093r1130988_rule
V-268093
SRG-OS-000042-GPOS-00020
ANIX-00-000260
CAT II
10
Configure NixOS to allocate sufficient audit_backlog_limit to capture processes that start prior to the audit daemon.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
boot.kernelParams = [
"audit_backlog_limit=8192"
];
security.audit.backlogLimit = 8192;
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS allocates a sufficient audit_backlog_limit to capture processes that start prior to the audit daemon with the following command:
$ sudo auditctl -s | grep backlog_limit
backlog_limit 8192
If the "backlog_limit" entry does not equal "8192" or greater or is missing, this is a finding.
V-268093
False
ANIX-00-000260
Verify NixOS allocates a sufficient audit_backlog_limit to capture processes that start prior to the audit daemon with the following command:
$ sudo auditctl -s | grep backlog_limit
backlog_limit 8192
If the "backlog_limit" entry does not equal "8192" or greater or is missing, this is a finding.
M
5658