RHEL 9 must use a separate file system for /var/tmp.

STIG ID: RHEL-09-231035  |  SRG: SRG-OS-000480-GPOS-00227 |  Severity: medium |  CCI: CCI-000366 |  Vulnerability Id: V-257848 | 

Vulnerability Discussion

The "/var/tmp" partition is used as temporary storage by many programs. Placing "/var/tmp" in its own partition enables the setting of more restrictive mount options, which can help protect programs that use it.

Check

Verify that a separate file system/partition has been created for "/var/tmp" with the following command:

$ mount | grep /var/tmp

UUID=c274f65f-c5b5-4379-b017-bee96feb7a34 /var/log xfs noatime 1 2

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

Fix

Migrate the "/var/tmp" path onto a separate file system.