Ensure seperate file system for /tmp

Details

The operating system must use a separate file system for /tmp (or equivalent).

Rationale:

The use of separate file systems for different paths can protect the system from failures resulting from a file system becoming full or failing.

Solution

Start the tmp.mount service with the following command:

# systemctl enable tmp.mount

OR
Edit the /etc/fstab file and ensure the /tmp directory is defined in the fstab with a device and mount point.
Example: vim /etc/fstab
Add, uncomment or update this line:

tmpfs/tmptmpfs defaults,rw,nosuid,nodev,noexec,relatime 0 0

Notes:

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019

Vul ID: V-72065

Rule ID: SV-86689r3_rule

STIG ID: RHEL-07-021340

Severity: CAT III

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles