From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1489754664.29454.2.camel@tycho.nsa.gov> References: <1489754664.29454.2.camel@tycho.nsa.gov> From: cgzones Date: Fri, 17 Mar 2017 14:51:54 +0100 Message-ID: Subject: Re: newrole as su'ed root To: Stephen Smalley Cc: selinux Content-Type: text/plain; charset=UTF-8 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: > Hmmm...Fedora policy doesn't allow use of su from staff_t; you have to > newrole first and then su. > > Regardless, newrole uses the login uid if available, falling back to > the real uid if not, for the identity used to re-authenticate and to > set up the environment. If you want the environment preserved, use -p. > Thanks, both ways are working.