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