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