SV-209075r603263_rule
V-209075
SRG-OS-000368
OL6-00-000532
CAT III
10
Configure the "/etc/fstab" to use the "noexec" option for all lines containing "/dev/shm".
Verify that the "noexec" option is configured for /dev/shm.
Check that the operating system is configured to use the "noexec" option for /dev/shm with the following command:
# cat /etc/fstab | grep /dev/shm | grep noexec
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0
If the "noexec" option is not present on the line for "/dev/shm", this is a finding.
Verify "/dev/shm" is mounted with the "noexec" option:
# mount | grep "/dev/shm" | grep noexec
If no results are returned, this is a finding.
V-209075
False
OL6-00-000532
Verify that the "noexec" option is configured for /dev/shm.
Check that the operating system is configured to use the "noexec" option for /dev/shm with the following command:
# cat /etc/fstab | grep /dev/shm | grep noexec
tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0
If the "noexec" option is not present on the line for "/dev/shm", this is a finding.
Verify "/dev/shm" is mounted with the "noexec" option:
# mount | grep "/dev/shm" | grep noexec
If no results are returned, this is a finding.
M
2928