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