diff --git a/policycoreutils/audit2allow/audit2allow b/policycoreutils/audit2allow/audit2allow index a187edf4..11aaaedb 100644 --- a/policycoreutils/audit2allow/audit2allow +++ b/policycoreutils/audit2allow/audit2allow @@ -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() diff --git a/policycoreutils/audit2allow/audit2allow.1 b/policycoreutils/audit2allow/audit2allow.1 index b7169c39..83c0a904 100644 --- a/policycoreutils/audit2allow/audit2allow.1 +++ b/policycoreutils/audit2allow/audit2allow.1 @@ -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"