Re: CentOS 5 RBAC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux