Skip to contentSkip to conversation

setting boolean values

DISCUSSION Greg Norris 2 participants 3 messages Dec 17, 2004 – Dec 18, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Stupid question... which component is responsible for setting the initial value for booleans during system startup? I'm guessing this would be init's job, but am not absolutely certain. I'm trying to determine why they aren't being set properly on my Debian system... hopefully it's not something embarrassingly stupid (nah, that NEVER happens! ;-).

My /etc/selinux/config contains the following:

   # used by init
   SELINUX=enforcing
   # Debian does not support using a config file to switch between policies
   SELINUXTYPE=.

My /etc/selinux/booleans contains:

spamassasin_can_network=1

Any thoughts?

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

#1 lore raw
Quoted 6 lines · Greg Norris

Stupid question... which component is responsible for setting the initial value for booleans during system startup? I'm guessing this would be init's job, but am not absolutely certain. I'm trying to determine why they aren't being set properly on my Debian system... hopefully it's not something embarrassingly stupid (nah, that NEVER happens! ;-).

Yes, the current patch for /sbin/init calls sepol_genbools() to rewrite the boolean initial values in the binary policy based on your booleans config file prior to calling security_load_policy(). That was introduced during FC3 development, so the Debian patch for init might not be up-to-date. BTW, Fedora Core now has a public CVS repository, so people who want to track the SELinux-related patches there can do so much more easily.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
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.
#2 lore raw
Quoted 5 lines · Stephen Smalley

Yes, the current patch for /sbin/init calls sepol_genbools() to rewrite the boolean initial values in the binary policy based on your booleans config file prior to calling security_load_policy(). That was introduced during FC3 development, so the Debian patch for init might not be up-to-date.

Yep, that was it. I'll see about rebuilding sysvinit with the updated patch over the next few days.

Thanx!