All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Warner <warner@rubix.com>
To: SE-Linux <selinux@tycho.nsa.gov>
Subject: execute system-config-selinux while enforcing
Date: Thu, 10 May 2012 15:03:32 +0200	[thread overview]
Message-ID: <4FABBCA4.8090006@rubix.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]

I am running Scientific Linux 6.0, fully updated using the targeted policy.

Is there a method to execute the SELinux admin GUI tool 
system-config-selinux while in enforcing mode of the targeted policy?

My assumption is that root linux user combined with sysadm_r role would 
work. However, after creating a shell with sudo -i -r sysadm_r (from the 
staff_r role), the tool fails to start. I then tried to create a user 
that would login via the GUI login and receive the sysadm_r role by 
default. In this case I was unsuccessful in even getting the sysadm_r 
role to have the sysadm_t upon login. It receives a context of 
sysadm_u:sysadm_r:oddjob_mkhomedir_t. This despite having the following 
/etc/selinux/targeted/contexts/users/sysadm_u file:

system_r:local_login_t:s0    sysadm_r:sysadm_t:s0
system_r:remote_login_t:s0    sysadm_r:sysadm_t:s0
system_r:sshd_t:s0        sysadm_r:sysadm_t:s0
system_r:crond_t:s0        sysadm_r:sysadm_t:s0
system_r:xdm_t:s0        sysadm_r:sysadm_t:s0
sysadm_r:sysadm_su_t:s0        sysadm_r:sysadm_t:s0
sysadm_r:sysadm_sudo_t:s0    sysadm_r:sysadm_t:s0
system_r:initrc_su_t:s0        sysadm_r:sysadm_t:s0
sysadm_r:sysadm_t:s0        sysadm_r:sysadm_t:s0
sysadm_r:sysadm_su_t:s0        sysadm_r:sysadm_t:s0
sysadm_r:sysadm_sudo_t:s0    sysadm_r:sysadm_t:s0

Thanks,

Andy



[-- Attachment #2: Type: text/html, Size: 2071 bytes --]

             reply	other threads:[~2012-05-10 13:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10 13:03 Andy Warner [this message]
2012-05-10 13:17 ` execute system-config-selinux while enforcing Stephen Smalley
2012-05-10 13:35   ` Andy Warner

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=4FABBCA4.8090006@rubix.com \
    --to=warner@rubix.com \
    --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.