RHEL 10 must use a separate file system for "/var/log".

STIG ID: RHEL-10-000560  |  SRG: SRG-OS-000420-GPOS-00186 |  Severity: medium (CAT II)  |  CCI: CCI-002385 |  Vulnerability Id: V-280940

Vulnerability Discussion

Placing "/var/log" in its own partition enables better separation between log files and other files in "/var/".

Check

Verify RHEL 10 uses a separate file system/partition for "/var/log" with the following command:

$ mount | grep /var/log
/dev/mapper/luks-c651f493-9fdc-4c6e-a711-0a4f03149661 on /var/log type xfs (rw,nosuid,nodev,noexec,relatime,seclabel,attr2)
Note: Options displayed for mount may differ.

If a separate entry for "/var/log" is not in use, this is a finding.

Fix

Configure RHEL 10 to use a separate file system for log file directories by migrating the "/var/log" path onto a separate file system.