All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: Stephen Smalley <sds@epoch.ncsc.mil>,
	SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: How come security_get_boolean_pending returns true when a	boolean is on.
Date: Thu, 11 Nov 2004 20:00:30 -0500	[thread overview]
Message-ID: <41940B2E.10303@redhat.com> (raw)
In-Reply-To: <1100206422.28882.15.camel@selinux>

Christopher J. PeBenito wrote:

>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().
>
>  
>
That is what I figured out after I sent the mail.  So I have changed 
getsebool to report.

allow_xserver_home_fonts --> inactive
allow_ypbind --> inactive
cron_can_relabel --> inactive
disable_games --> inactive pending --> avtive
(active and pending differ)
ftp_home_dir --> active
ftpd_is_daemon --> active
httpd_enable_cgi --> active
httpd_enable_homedirs --> active
httpd_ssi_exec --> active  pending --> inactive


Which I think is much more understandable.

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

      reply	other threads:[~2004-11-12  1:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-11 14:14 How come security_get_boolean_pending returns true when a boolean is on Daniel J Walsh
2004-11-11 18:56 ` Steve G
2004-11-11 20:53 ` Christopher J. PeBenito
2004-11-12  1:00   ` Daniel J Walsh [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=41940B2E.10303@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=cpebenito@tresys.com \
    --cc=sds@epoch.ncsc.mil \
    --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.