RHEL-08-040400 - RHEL 8 must prevent non-privileged users from executing privileged functions, including disabling, circumventing, or altering implemented security safeguards/countermeasures.

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.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Configure RHEL 8 to prevent non-privileged users from executing privileged functions, including disabling, circumventing, or altering implemented security safeguards/countermeasures.

Use the following command to map a new user to the 'sysadm_u' role:

$ sudo semanage login -a -s sysadm_u <username>

Use the following command to map an existing user to the 'sysadm_u' role:

$ sudo semanage login -m -s sysadm_u <username>

Use the following command to map a new user to the 'staff_u' role:

$ sudo semanage login -a -s staff_u <username>

Use the following command to map an existing user to the 'staff_u' role:

$ sudo semanage login -m -s staff_u <username>

Use the following command to map a new user to the 'user_u' role:

$ sudo semanage login -a -s user_u <username>

Use the following command to map an existing user to the 'user_u' role:

$ sudo semanage login -m -s user_u <username>

See Also

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

Item Details

References: CAT|II, CCI|CCI-002265, Rule-ID|SV-254520r858835_rule, STIG-ID|RHEL-08-040400, Vuln-ID|V-254520

Plugin: Unix

Control ID: d4c8da7aa6d5fc200db4a00057cd8b015a51b84bf2567620c13beb415bfb5d53