i mean persistent change in the context of root user
On Sat, Aug 20, 2016 at 6:25 AM, masoom alam <masoom.alam@xxxxxxxxx> wrote:
U mean permanently?
I am wondering if this is possible
sorry for typos....sent from mob
On Aug 20, 2016 5:57 AM, "Kashif ali" <kashif.ali.9498@xxxxxxxxx> wrote:______________________________Hi* I'm facing a problem while changing the context of root user in selinux, Selinux is in enforced and targeted policy. By default Selinux assign user =>"unconfined_u:unconfiend_r:unconfined_t:" context for the user i have changed the selinux mapped root user "unconifined_u" into "system_u" for root user with the help of command=>"semanage login -a -s system_u root"after executing this command the root user context is changed into "system_u:unconfined_r:unconfined_t:". * Now i have changed the root user role and domain type so i execute this command=>"newrole -r system_r -t initrc_t:"and change the root user context into "system_u:system_r:initrc_t:" but this change is temporary after rebooting the system the context of root user is changed back to "system_u:unconfined_r:unconfined_t:" * what i need is to change the root user context permanently into "system_u:system_r:initrc_t:"._________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.
_______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.