Research Menu

.
Skip Search Box

SELinux Mailing List

Re: How come security_get_boolean_pending returns true when a boolean is on.

From: Christopher J. PeBenito <cpebenito_at_tresys.com>
Date: Thu, 11 Nov 2004 15:53:42 -0500


On Thu, 2004-11-11 at 09:14 -0500, Daniel J Walsh wrote:
> getsebool -a
> mozilla_writehome --> active: 1 pending: 1
> named_write_master_zones --> active: 0 pending: 0
> nfs_export_all_ro --> active: 0 pending: 0
> nfs_export_all_rw --> active: 0 pending: 0
> read_default_t --> active: 1 pending: 1
> run_ssh_inetd --> active: 0 pending: 0
> secure_mode --> active: 0 pending: 0
> spamassasin_can_network --> active: 0 pending: 0
> ssh_sysadm_login --> active: 1 pending: 1
> staff_read_sysadm_file --> active: 1 pending: 1

The active and pending should be the same unless someone is intending to change it, but hasn't committed the changes. So in this example:

> Shouldn't this be
> staff_read_sysadm_file --> active: 1 pending: 0

this would mean that someone has done a
security_set_boolean("staff_read_sysadm_file",0), but hasn't done a security_commit_booleans() yet. After you commit it, the bool will be active 0, pending 0. Then subsequent commits will not change the value since the pending is the same as the active. If active and pending were always opposite, you'd be toggling all of the booleans on every security_commit_booleans().

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150



--
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.
Received on Thu 11 Nov 2004 - 15:53:43 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service