OL08-00-040128 - OL 8 must mount '/var/log' with the 'noexec' option.

Information

The organization must identify authorized software programs and permit execution of authorized software. The process used to identify software programs that are authorized to execute on organizational information systems is commonly referred to as whitelisting.

The 'noexec' mount option causes the system to not execute binary files. This option must be used for mounting any file system not containing approved binary files, as they may be incompatible. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

The 'nodev' mount option causes the system to not interpret character or block special devices. Executing character or block special devices from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

The 'nosuid' mount option causes the system to not execute 'setuid' and 'setgid' files with owner privileges. This option must be used for mounting any file system not containing approved 'setuid' and 'setguid' files. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

Solution

Configure the system so that /var/log is mounted with the 'noexec' 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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_8_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(2), CAT|II, CCI|CCI-001764, Rule-ID|SV-248852r958804_rule, STIG-ID|OL08-00-040128, Vuln-ID|V-248852

Plugin: Unix

Control ID: c6ad4b9de80bb0113d1384092f7c2631b8ceda764de3b705b9e5715d5dfb96b5