RHEL-07-020021 - The Red Hat Enterprise Linux operating system must confine SELinux users to roles that conform to least privilege - sysadm_u

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Preventing non-privileged 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. Non-privileged 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 non-privileged 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_RHEL_7_V3R8_STIG.zip

Item Details

References: CAT|II, CCI|CCI-002165, CCI|CCI-002235, Rule-ID|SV-250312r792843_rule, STIG-ID|RHEL-07-020021, Vuln-ID|V-250312

Plugin: Unix

Control ID: 02afe5039043caeccc786b88e2bda36f262a851b0f30552602745d8705530841