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

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

Vulnerability Discussion

Ensuring that "/var" is mounted on its own partition enables the setting of more restrictive mount options. This helps protect system services such as daemons or other programs that use it. It is not uncommon for the "/var" directory to contain world-writable directories installed by other software packages.

Check

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

$ mount | grep /var
/dev/mapper/luks-51150299-f295-4145-b8f0-ebe9c6dfd5a0 on /var type xfs (rw,nodev,relatime,seclabel,attr2)
Note: Options displayed for mount may differ.

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

Fix

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