From: Stephen Smalley <sds@tycho.nsa.gov>
To: Roy Badami <roy.badami@roboreus.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: CentOS 5 RBAC
Date: Wed, 31 Aug 2011 13:15:51 -0400 [thread overview]
Message-ID: <1314810951.6850.26.camel@moss-pluto> (raw)
In-Reply-To: <4E5E68DB.1030101@roboreus.com>
On Wed, 2011-08-31 at 18:01 +0100, Roy Badami wrote:
> I'm trying to understand the RBAC features in the version of the mls
> (and also strict) policies that ship with CentOS 5.6 - I'm not sure if
> this is the best place to ask or if there's a more appropriate list.
>
> Starting with the mls policy, and setting the secure_mode_loadpolicy
> boolean to 'on' I then get that *neither* sysadm_r *nor* secadm_r can
> issue commands such as setenforce.
secure_mode_policyload = 1 means "Don't allow any further policy
reloads, changing enforcing mode, or boolean changes (until next
reboot)."
The logic in selinux_set_enforce_mode() in
policy/modules/kernel/selinux.if is:
...
if(!secure_mode_policyload) {
allow $1 security_t:security setenforce;
...
}
Notice the logical negation (!) in the above if statement.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2011-08-31 17:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-31 17:01 CentOS 5 RBAC Roy Badami
2011-08-31 17:15 ` Stephen Smalley [this message]
2011-08-31 18:03 ` Roy Badami
2011-08-31 18:23 ` Stephen Smalley
2011-08-31 18:25 ` Stephen Smalley
2011-09-02 11:37 ` Roy Badami
2011-09-02 12:30 ` Christopher J. PeBenito
2011-09-02 13:49 ` Roy Badami
2011-09-02 14:18 ` Dominick Grift
2011-08-31 17:24 ` Stephen Smalley
2011-08-31 18:03 ` Roy Badami
2011-08-31 17:48 ` Dominick Grift
2011-08-31 18:14 ` Roy Badami
2011-08-31 18:24 ` Dominick Grift
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=1314810951.6850.26.camel@moss-pluto \
--to=sds@tycho.nsa.gov \
--cc=roy.badami@roboreus.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.