Setting the Default User Mapping
This task shows how to change the default user mapping from unconfined_u
to another SELinux user.
On most newly installed systems, the default user mapping is set to the
unconfined_u
SELinux user to provide a less restrictive environment for
general use. In some environments where strict policy enforcement is required, such as when
conforming to a Security Technical Implementation Guide (STIG), you might need to map all
Oracle Linux user accounts to appropriate confined SELinux users so that a system is better
protected by the SELinux policy rules that you're enforcing.
Note that the unconfined security context continues to apply to users after this change until the user session or the process is restarted under the new context. To enforce this change at a system-wide level, reboot the system.