Skip to contentSkip to conversation

New strategy for enableaudit.

DISCUSSION Daniel J Walsh 3 participants 5 messages Dec 17, 2005 – Dec 18, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

I have added enableaudit to Rules.modular to create a base.conf without audit rules.

Then in the Fedora spec file I create a regulare base.pp and a enableaudit.pp.

I ship both in the RPM.

Now the user can execute

semodule -b /usr/share/selinux/targeted/enableaudit.pp

To turn off the dontaudit rules.

Dan

Signature · 4 lines
--
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 11 lines · Daniel J Walsh

I have added enableaudit to Rules.modular to create a base.conf without audit rules.

Then in the Fedora spec file I create a regulare base.pp and a enableaudit.pp. I ship both in the RPM.

Now the user can execute

semodule -b /usr/share/selinux/targeted/enableaudit.pp

To turn off the dontaudit rules.

What about audit rules in modules...

--
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 6 lines · Ivan Gyurdiev
Quoted 5 lines · Daniel J Walsh

I have added enableaudit to Rules.modular to create a base.conf without audit rules.

Then in the Fedora spec file I create a regulare base.pp and a enableaudit.pp. I ship both in the RPM.

Quoted 8 lines
Quoted 6 lines

Now the user can execute

semodule -b /usr/share/selinux/targeted/enableaudit.pp

To turn off the dontaudit rules.

What about audit rules in modules...

This is only a short term solution until we get boolean support for dontaudit rules. But modules could do the same thing. This
gives me the ability to debug problems being covered by dontaudit rules for now though.

Dan

Signature · 4 lines
--
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.
#3 lore raw
Quoted 3 lines

This is only a short term solution until we get boolean support for dontaudit rules. But modules could do the same thing. This
gives me the ability to debug problems being covered by dontaudit rules for now though.

So what's the planned solution using boolean support? There's a number of things that could be done here...

Are you thinking of the module compiler placing dontaudit rules in a conditional block, based on a shared (base) boolean?

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

#4 lore raw
Quoted 9 lines · Ivan Gyurdiev
Quoted 3 lines

This is only a short term solution until we get boolean support for dontaudit rules. But modules could do the same thing. This
gives me the ability to debug problems being covered by dontaudit rules for now though.

So what's the planned solution using boolean support? There's a number of things that could be done here...

Are you thinking of the module compiler placing dontaudit rules in a conditional block, based on a shared (base) boolean?

not automatically; the refpolicy should just have all dontaudits under a
specific boolean. This will be easier when nested conditionals are
available.

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