Skip to contentSkip to conversation

python/sepolicy: search() for dontaudit rules as well

PATCH New Petr Lautrbach 1 participant 1 message Sep 18, 2018 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python/sepolicy: search() for dontaudit rules as well

dontaudit rules were accidentally dropped during rewrite to SETools 4 API=
in
97d5f6a2

Fixes:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

import sepolicy
sepolicy.search(['dontaudit'])

[]

---
 python/sepolicy/sepolicy/__init__.py | 2 ++
 1 file changed, 2 insertions(+)
python/sepolicy/sepol= renamed from python/sepolicy/sepolicy/__init__.py +0 -0

icy/__init__.py
index 89346aba..c1a60798 100644

python/sepolicy/sepolicy/__init__.py +2 -0
@@ -334,6 +334,8 @@ def search(types, seinfo=3DNone):
         tertypes.append(NEVERALLOW)
     if AUDITALLOW in types:
         tertypes.append(AUDITALLOW)
+    if DONTAUDIT in types:
+        tertypes.append(DONTAUDIT)

=20
if len(tertypes) > 0:
q =3D setools.TERuleQuery(_pol,
--=20
2.19.0