STIGUI
V-268118CAT II — Medium severitySV-268118r1131037_rule

NixOS systemd-journald logs must have a mode of 0640 or less permissive.

Rule version ANIX-00-000600 · STIG v1 · 2025-08-19

Discussion

Only authorized personnel should be aware of errors and the details of the errors. Error messages are an indicator of an organization's operational state or can identify the NixOS system or platform. Additionally, Personally Identifiable Information (PII) and operational information must not be revealed through error messages to unauthorized personnel or their designated representatives.

The structure and content of error messages must be carefully considered by the organization and development team. The extent to which the information system is able to identify and handle error conditions is guided by organizational policy and operational requirements.

Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000205-GPOS-00083

Check

Verify NixOS protects log information from unauthorized read access by implementing a mode of 0640 or less on the creation of log files with the following command:

$ sudo find /var/log/journal -type f -perm -640 -not -perm 640 -printf "%p %m\n"

If any log files have a permission of greater than 0640, this is a finding.

Fix

The systemd-journald files are by design set to 0640 mode.

If any files are found with incorrect perms, correct them with the following command:

$ sudo find /var/log/journal -type f -exec chmod 0640 {} \;

Identifiers

Group ID
V-268118
Group title
SRG-OS-000057-GPOS-00027
Rule ID
SV-268118r1131037_rule
Check ID
C-72042r1131035_chk
Fix ID
F-71945r1131036_fix