All of lore.kernel.org
 help / color / mirror / Atom feed
From: cgzones <cgzones@googlemail.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux <selinux@tycho.nsa.gov>
Subject: Re: newrole as su'ed root
Date: Fri, 17 Mar 2017 14:51:54 +0100	[thread overview]
Message-ID: <CAJ2a_Dc8oao=JG16A__dq_eGrVCDTWcuA-DVRC+qMKqsV9wF5Q@mail.gmail.com> (raw)
In-Reply-To: <1489754664.29454.2.camel@tycho.nsa.gov>

> 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.

      reply	other threads:[~2017-03-17 13:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-17 11:07 newrole as su'ed root cgzones
2017-03-17 12:44 ` Stephen Smalley
2017-03-17 13:51   ` cgzones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ2a_Dc8oao=JG16A__dq_eGrVCDTWcuA-DVRC+qMKqsV9wF5Q@mail.gmail.com' \
    --to=cgzones@googlemail.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.