SV-268107r1131017_rule
V-268107
SRG-OS-000051-GPOS-00024
ANIX-00-000460
CAT II
10
Configure the operating system to off-load audit logs.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
services.journald.audit = true;
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify that the systemd-journald service is running with the following command:
$ systemctl status systemd-journald.service
systemd-journald.service - Journal Service
Loaded: loaded (/etc/systemd/system/systemd-journald.service; enabled; preset: ignored)
Drop-In: /nix/store/z8klzmxqgpmn8ganwrsqizy3qdxnirr8-system-units/systemd-journald.service.d
+-overrides.conf
Active: active (running) since Mon 2025-03-10 10:41:08 PDT; 1 day 2h ago
If the systemd-journald.service is not "active" and "running", this is a finding.
V-268107
False
ANIX-00-000460
Verify that the systemd-journald service is running with the following command:
$ systemctl status systemd-journald.service
systemd-journald.service - Journal Service
Loaded: loaded (/etc/systemd/system/systemd-journald.service; enabled; preset: ignored)
Drop-In: /nix/store/z8klzmxqgpmn8ganwrsqizy3qdxnirr8-system-units/systemd-journald.service.d
+-overrides.conf
Active: active (running) since Mon 2025-03-10 10:41:08 PDT; 1 day 2h ago
If the systemd-journald.service is not "active" and "running", this is a finding.
M
5658