SV-209071r603263_rule
V-209071
SRG-OS-000480
OL6-00-000528
CAT II
10
The "noexec" mount option can be used to prevent binaries from being executed out of "/tmp". Add the "noexec" option to the fourth column of "/etc/fstab" for the line which controls mounting of "/tmp".
To verify that binaries cannot be directly executed from the /tmp directory, run the following command:
$ grep '\s/tmp' /etc/fstab
The resulting output will show whether the /tmp partition has the "noexec" flag set. If the /tmp partition does not have the noexec flag set, this is a finding.
V-209071
False
OL6-00-000528
To verify that binaries cannot be directly executed from the /tmp directory, run the following command:
$ grep '\s/tmp' /etc/fstab
The resulting output will show whether the /tmp partition has the "noexec" flag set. If the /tmp partition does not have the noexec flag set, this is a finding.
M
2928