1. Home
  2. Security Hardening
  3. CIS Amazon Linux 2 V2.0.0 L1
  4. Ensure /var/tmp partition includes the nodev option

Ensure /var/tmp partition includes the nodev option

Details

The nodev mount option specifies that the filesystem cannot contain special devices.

Rationale:

Since the /var/tmp filesystem is not intended to support devices, set this option to ensure that users cannot attempt to create block or character special devices in /var/tmp .

Solution

For existing /var/tmp partitions, edit the /etc/fstab file and add nodev to the fourth field (mounting options) of the /var/tmp entry. See the fstab(5) manual page for more information.
Run the following command to remount /var/tmp:

# mount -o remount,nodev /var/tmp

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control, Configuration Management, Identification and Authentication, Media Protection.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles