SV-230520r627750_rule
V-230520
SRG-OS-000368-GPOS-00154
RHEL-08-040132
CAT II
10
Configure the system so that /var/tmp is mounted with the "nodev" option by adding /modifying the /etc/fstab with the following line:
/dev/mapper/rhel-var-log-audit /var/tmp xfs defaults,nodev,nosuid,noexec 0 0
Verify "/var/tmp" is mounted with the "nodev" option:
$ sudo mount | grep /var/tmp
/dev/mapper/rhel-var-log-audit on /var/tmp type xfs (rw,nodev,nosuid,noexec,seclabel)
Verify that the "nodev" option is configured for /var/tmp:
$ sudo cat /etc/fstab | grep /var/tmp
/dev/mapper/rhel-var-log-audit /var/tmp xfs defaults,nodev,nosuid,noexec 0 0
If results are returned and the "nodev" option is missing, or if /var/tmp is mounted without the "nodev" option, this is a finding.
V-230520
False
RHEL-08-040132
Verify "/var/tmp" is mounted with the "nodev" option:
$ sudo mount | grep /var/tmp
/dev/mapper/rhel-var-log-audit on /var/tmp type xfs (rw,nodev,nosuid,noexec,seclabel)
Verify that the "nodev" option is configured for /var/tmp:
$ sudo cat /etc/fstab | grep /var/tmp
/dev/mapper/rhel-var-log-audit /var/tmp xfs defaults,nodev,nosuid,noexec 0 0
If results are returned and the "nodev" option is missing, or if /var/tmp is mounted without the "nodev" option, this is a finding.
M
2921