OL07-00-020023 - The Oracle Linux operating system must elevate the SELinux context when an administrator calls the sudo command.

Information

Preventing nonprivileged users from executing privileged functions mitigates the risk that unauthorized individuals or processes may gain unnecessary access to information or privileges.

Privileged functions include, for example, establishing accounts, performing system integrity checks, or administering cryptographic key management activities. Nonprivileged users are individuals who do not possess appropriate authorizations. Circumventing intrusion detection and prevention mechanisms or malicious code protection mechanisms are examples of privileged functions that require protection from nonprivileged users.

Solution

Configure the operating system to elevate the SELinux context when an administrator calls the sudo command.
Edit a file in the '/etc/sudoers.d' directory with the following command:

$ sudo visudo -f /etc/sudoers.d/<customfile>

Use the following example to build the <customfile> in the /etc/sudoers.d directory to allow any administrator belonging to a designated sudoers admin group to elevate their SELinux context with the use of the sudo command:

%{designated_group_or_user_name} ALL=(ALL) TYPE=sysadm_t ROLE=sysadm_r ALL

Remove any configurations that conflict with the above from the following locations:

/etc/sudoers
/etc/sudoers.d/

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(4), 800-53|AC-6(10), CAT|II, CCI|CCI-002165, CCI|CCI-002235, Rule-ID|SV-250311r928548_rule, STIG-ID|OL07-00-020023, Vuln-ID|V-250311

Plugin: Unix

Control ID: 86e9f4291dddff178a15248b75f6240f88bd7357c752345aababb8118a887b3d