All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Suppress rule generation for dontaudit rules
@ 2007-08-15 14:15 Karl MacMillan
  2007-08-16 18:45 ` Stephen Smalley
  0 siblings, 1 reply; 7+ messages in thread
From: Karl MacMillan @ 2007-08-15 14:15 UTC (permalink / raw)
  To: selinux

The current policy generation code incorrectly generates allow rules for dontaudit messages. This patch fixes that.

Signed-off-by: User "Karl MacMillan <kmacmillan@mentalrootkit.com>"
---

diff -r 56dbe9166d98 -r 2ad2d21fc724 sepolgen/src/sepolgen/policygen.py
--- a/sepolgen/src/sepolgen/policygen.py	Thu Jun 07 08:08:31 2007 -0400
+++ b/sepolgen/src/sepolgen/policygen.py	Wed Aug 15 10:13:28 2007 -0400
@@ -139,6 +139,8 @@ class PolicyGenerator:
 
     def __add_allow_rules(self, avs):
         for av in avs:
+            if not av.denial:
+                continue
             rule = refpolicy.AVRule(av)
             if self.explain:
                 rule.comment = refpolicy.Comment(explain_access(av, verbosity=self.explain))

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-09-03 16:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 14:15 [PATCH] Suppress rule generation for dontaudit rules Karl MacMillan
2007-08-16 18:45 ` Stephen Smalley
2007-08-16 19:23   ` Joshua Brindle
2007-08-23 13:22     ` Stephen Smalley
2007-08-24 16:00       ` Karl MacMillan
2007-08-29 12:30         ` Stephen Smalley
2007-09-03 16:18           ` Karl MacMillan

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.