Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does the su command change my SELinux identity and role?

Command identity SELinux
0
Posted

Does the su command change my SELinux identity and role?

0

In previous versions of Fedora Core, security context transitions were integrated into the su via pam_selinux. This turned out to be more trouble than it was worth, and is quite unnecessary on a system running targeted policy. So, this is no longer the case. Now, su/sudo only change the Linux identy. You will need to use newrole to change the SELinux identity, role, or level. Other forms of Linux/UNIX® identity change, for example setuid(2), also do not cause an SELinux identity change.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123