AlmaLinux OS 9 must use a separate file system for /tmp.

STIG ID: ALMA-09-025100  |  SRG: SRG-OS-000480-GPOS-00227 |  Severity: medium |  CCI: CCI-000366 |  Vulnerability Id: V-269301

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 that a separate file system/partition has been created for "/tmp" with the following command:

$ mount | grep ' /tmp '

tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,size=2097152k,inode64)

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

Fix

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