September 2014
Intermediate to advanced
240 pages
5h 53m
English
With the SELinux users available, we can now map Linux users to SELinux users. This will ensure that the users, when logged in to the system, are assigned a default context aligned with this SELinux user.
In order to map Linux users to SELinux users, the following steps can be taken:
semanage login:~# semanage login -l Login Name SELinux User MLS/MCS Range __default__ user_u s0-s0:c0.c1023 root root s0-s0:c0.c1023 system_u system_u s0-s0:c0.c1023 %wheel sysadm_u s0-s0:c0.c1023
semanage login:
~# semanage login -a -s dbadm_u user1