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