Skip to contentSkip to conversation

setsebool

DISCUSSION Daniel J Walsh 5 participants 9 messages Jul 13, 2006 11 messages not in the archive SELinux security module

lore
Share & tools
lore
#11 lore raw
In reply to a message not in the archive

How come when I set one boolean via setsebool I get an AVC granted message for all the booleans?

Is this a problem in the Kernel or libraries? Or just the way it is?

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

#12 lore raw
Quoted 1 line · Daniel J Walsh

Is this a problem in the Kernel or libraries?  Or just the way it is?

I think the granted statement comes from policy. I was thinking that audit of granting when changing booleans would be dropped from policy when the 2.6.17 kernel was out.

-Steve

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

#13 lore raw
Quoted 7 lines · Steve Grubb
Quoted 1 line · Daniel J Walsh

Is this a problem in the Kernel or libraries? Or just the way it is?

I think the granted statement comes from policy. I was thinking that audit of granting when changing booleans would be dropped from policy when the 2.6.17 kernel was out.

The kernel also generates a message with all of the boolean states in addition to the auditallow. When wrote that my thought was that there would not be that many booleans and printing them all would make it easier to see the state of the system in the logs. Obviously I was wrong about the number of booleans.

The message is printed from security_set_bools in services.c. Should this just go in favor of an audit message or be changed to just print the state of the changed booleans?

Karl

Quoted 8 lines

-Steve

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

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

#17 lore raw
In reply to Daniel J Walsh
Quoted 4 lines · Daniel J Walsh

How come when I set one boolean via setsebool I get an AVC granted message for all the booleans?

Is this a problem in the Kernel or libraries? Or just the way it is?

libsemanage sets them all upon commit.
We could likely drop the auditallow statement on setbool as it isn't particularly useful and we now have the explicit audit messages for MAC_CONFIG_CHANGE.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#18 lore raw
Quoted 3 lines · Stephen Smalley

We could likely drop the auditallow statement on setbool as it isn't particularly useful and we now have the explicit audit messages for MAC_CONFIG_CHANGE.

That would be great.

Thanks,
-Steve

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

#14 lore raw
In reply to Karl MacMillan
Quoted 15 lines · Karl MacMillan
Quoted 7 lines · Steve Grubb
Quoted 1 line · Daniel J Walsh

Is this a problem in the Kernel or libraries? Or just the way it is?

I think the granted statement comes from policy. I was thinking that audit of granting when changing booleans would be dropped from policy when the 2.6.17 kernel was out.

The kernel also generates a message with all of the boolean states in addition to the auditallow. When wrote that my thought was that there would not be that many booleans and printing them all would make it easier to see the state of the system in the logs. Obviously I was wrong about the number of booleans.

Quoted 3 lines

The message is printed from security_set_bools in services.c. Should this just go in favor of an audit message or be changed to just print the state of the changed booleans?

Steve Grubb already changed that printk to an audit_log call that only displays changed values. In 2.6.17.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#15 lore raw
Quoted 16 lines · Stephen Smalley
Quoted 15 lines · Karl MacMillan
Quoted 7 lines · Steve Grubb
Quoted 1 line · Daniel J Walsh

Is this a problem in the Kernel or libraries? Or just the way it is?

I think the granted statement comes from policy. I was thinking that audit of granting when changing booleans would be dropped from policy when the 2.6.17 kernel was out.

The kernel also generates a message with all of the boolean states in addition to the auditallow. When wrote that my thought was that there would not be that many booleans and printing them all would make it easier to see the state of the system in the logs. Obviously I was wrong about the number of booleans.

Quoted 7 lines
Quoted 3 lines

The message is printed from security_set_bools in services.c. Should this just go in favor of an audit message or be changed to just print the state of the changed booleans?

Steve Grubb already changed that printk to an audit_log call that only displays changed values. In 2.6.17.

Oops - that will teach me to look at old kernel source. Looking through the archives I didn't see that patch posted to this list (but maybe I missed it). Where was this discussed?

Karl

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

#16 lore raw
Quoted 7 lines · Karl MacMillan
Quoted 3 lines

Steve Grubb already changed that printk to an audit_log call that only displays changed values. In 2.6.17.

Oops - that will teach me to look at old kernel source. Looking through the archives I didn't see that patch posted to this list (but maybe I missed it). Where was this discussed?

linux-audit and redhat-lspp lists.

Signature · 8 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#19 lore raw
In reply to Stephen Smalley
Quoted 10 lines · Stephen Smalley
Quoted 4 lines · Daniel J Walsh

How come when I set one boolean via setsebool I get an AVC granted message for all the booleans?

Is this a problem in the Kernel or libraries? Or just the way it is?

libsemanage sets them all upon commit.
We could likely drop the auditallow statement on setbool as it isn't particularly useful and we now have the explicit audit messages for MAC_CONFIG_CHANGE.

I'll remove the auditallow except for distro_rhel4 since those systems don't have libsemanage and auditing.

Signature · 9 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.