How come security_get_boolean_pending returns true when a boolean is on.
getsebool -amozilla_writehome --> active: 1 pending: 1named_write_master_zones --> active: 0 pending: 0nfs_export_all_ro --> active: 0 pending: 0nfs_export_all_rw --> active: 0 pending: 0read_default_t --> active: 1 pending: 1run_ssh_inetd --> active: 0 pending: 0secure_mode --> active: 0 pending: 0spamassasin_can_network --> active: 0 pending: 0ssh_sysadm_login --> active: 1 pending: 1staff_read_sysadm_file --> active: 1 pending: 1
Shouldn't this bestaff_read_sysadm_file --> active: 1 pending: 0
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines
Shouldn't this be
staff_read_sysadm_file--> active: 1 pending: 0
That depends....SE Linux interface remembers booleans that get set but haven't been committed. There isn't an explicit "rollback" command to match the commit. I tried to fix togglesebool and setsebool to do a rollback by walking the table and setting all pending values to the active value.
We you using current tools and how did you get it like that?
-Steve Grubb
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 11 lines · Daniel J Walsh
getsebool -a
mozilla_writehome--> active: 1 pending: 1named_write_master_zones--> active: 0 pending: 0nfs_export_all_ro--> active: 0 pending: 0nfs_export_all_rw--> active: 0 pending: 0read_default_t--> active: 1 pending: 1run_ssh_inetd--> active: 0 pending: 0secure_mode--> active: 0 pending: 0spamassasin_can_network--> active: 0 pending: 0ssh_sysadm_login--> active: 1 pending: 1staff_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:
Quoted 2 lines
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().
Signature · 10 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 27 lines · Christopher J. PeBenito
Quoted 13 lines · Daniel J Walsh
getsebool -a
mozilla_writehome--> active: 1 pending: 1named_write_master_zones--> active: 0 pending: 0nfs_export_all_ro--> active: 0 pending: 0nfs_export_all_rw--> active: 0 pending: 0read_default_t--> active: 1 pending: 1run_ssh_inetd--> active: 0 pending: 0secure_mode--> active: 0 pending: 0spamassasin_can_network--> active: 0 pending: 0ssh_sysadm_login--> active: 1 pending: 1staff_read_sysadm_file--> active: 1 pending: 1The active and pending should be the same unless someone is intending to change it, but hasn't committed the changes. So in this example:
Quoted 4 lines
Shouldn't this be
staff_read_sysadm_file--> active: 1 pending: 0
Quoted 10 lines
this would mean that someone has done a
security_set_boolean("staff_read_sysadm_file",0), but hasn't done asecurity_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 everysecurity_commit_booleans().
That is what I figured out after I sent the mail. So I have changed getsebool to report.
allow_xserver_home_fonts --> inactiveallow_ypbind --> inactivecron_can_relabel --> inactivedisable_games --> inactive pending --> avtive
(active and pending differ)ftp_home_dir --> activeftpd_is_daemon --> activehttpd_enable_cgi --> activehttpd_enable_homedirs --> activehttpd_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 [email protected] with the words "unsubscribe selinux" without quotes as the message.