RHEL-10-700185 - RHEL 10 must mount "/var/tmp" with the "nodev" option.

Information

The "nodev" mount option causes the system to not interpret character or block special devices. Executing character or block special devices from untrusted file systems increases the opportunity for nonprivileged users to attain unauthorized administrative access.

The only legitimate location for device files is the "/dev" directory located on the root partition, with the exception of chroot jails if implemented.

Solution

Configure RHEL 10 to mount "/var/tmp" with the "nodev" option.

Modify "/etc/fstab" to use the "nodev" option on the "/var/tmp" directory.

To reload all implicit mount units and update the dependency graph so that new options will apply correctly at next remount, run the following command:

$ sudo systemctl daemon-reload

Use the following command to apply the changes immediately without a reboot:

$ sudo mount -o remount /var/tmp

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_10_V1R1_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(2), CAT|II, CCI|CCI-001764, Rule-ID|SV-281245r1166687_rule, STIG-ID|RHEL-10-700185, Vuln-ID|V-281245

Plugin: Unix

Control ID: 6fed8fd5e449e51668263c3719b94e3b3fe4ae9f8f1a439345f4a284f2f0f4d3