Author: Daniel J Walsh

Email: dwalsh@redhat.com
Subject: policycoreutils audit2allow patch
Date: Fri, 07 Nov 2008 09:36:44 -0500

audit2why can throw a runtime exception and typo in man page.

Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
Joshua Brindle 2008-11-07 16:50:34 -05:00
parent bcd43e0bf1
commit cb69455465
2 changed files with 6 additions and 2 deletions

View File

@ -287,7 +287,11 @@ class AuditToPolicy:
def __output(self):
if self.__options.audit2why:
return self.__output_audit2why()
try:
return self.__output_audit2why()
except RuntimeError, e:
print e
sys.exit(1)
g = policygen.PolicyGenerator()

View File

@ -82,7 +82,7 @@ This attempts to match denials against interfaces and may be inaccurate.
Indicates input file is a te (type enforcement) file. This can be used to translate old te format to new policy format.
.TP
.B "\-w" | "\-\-why"
Translates SELinux audit messages into a description of why the access wasn denied
Translates SELinux audit messages into a description of why the access was denied
.TP
.B "\-v" | "\-\-verbose"