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

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

Vulnerability Discussion

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

Check

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

$ mount | grep /tmp
/dev/mapper/luks-2d7e1b45-73c4-4282-8838-15a897e0d04e on /tmp type xfs(rw,nodev,nosuid,noexec,seclabel)

Note: Options displayed for mount may differ.

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

Fix

Configure RHEL 10 to use a separate file system for temporary storage directories by migrating the "/tmp" path onto a separate file system.