← Rules Catalog
mediumfilesystemverified rollback-safe

Ensure nodev option on /var/tmp partition

mount-var-tmp-nodev · RHEL ≥ 8 · 1 impl

Description

The nodev mount option prevents device files from being interpreted on /var/tmp. Device files should only exist in /dev.

Rationale

Allowing device files on /var/tmp could allow an attacker to create special devices that access hardware directly.

Check → Remediate

Checkmount_option
mount_point:
/var/tmp
options:
nodev
Remediatemount_option_set
mount_point:
/var/tmp
options:
nodev

Framework references

CIS

rhel8 1.1.2.5.2rhel9 1.1.2.5.2rhel10 1.1.2.5.2

STIG

V-230520V-257876V-281245

NIST 800-53

CM-6AC-3

Live verification

rhel10:checkrhel8:checkrhel9:check
#mount#var-tmp#hardening