Add noexec Option to /dev/shm
An XCCDF Rule
Description
The noexec
mount option can be used to prevent binaries
from being executed out of /dev/shm
.
It can be dangerous to allow the execution of binaries
from world-writable temporary storage directories such as /dev/shm
.
Add the noexec
option to the list of
Options
in the systemd.mount
unit that
controls mounting of
/dev/shm
.
Rationale
Allowing users to execute binaries from world-writable directories
such as /dev/shm
can expose the system to potential compromise.
- ID
- xccdf_org.ssgproject.content_rule_mount_option_dev_shm_noexec
- Severity
- Medium
- References
- Updated