OL07-00-020021 - The Oracle Linux operating system must confine SELinux users to roles that conform to least privilege.

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 confine SELinux users to roles that conform to least privilege.

Use the following command to map the 'staff_u' SELinux user to the 'staff_r' and 'sysadm_r' roles:

$ sudo semanage user -m staff_u -R staff_r -R sysadm_r

Use the following command to map the 'user_u' SELinux user to the 'user_r' role:

$ sudo semanage -m user_u -R user_r

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-250309r928545_rule, STIG-ID|OL07-00-020021, Vuln-ID|V-250309

Plugin: Unix

Control ID: e60da50b66b638d0d548fea4f81daba54f2b9cacfbdefbcc02737d3fbaee71e1