From 5fe159bfdd0347d48ad6dfa97c92f43c00982bc4 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Wed, 13 Nov 2013 10:43:46 -0500 Subject: [PATCH] selinux_current_policy_path will return none on a disabled SELinux system --- policycoreutils/audit2allow/sepolgen-ifgen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policycoreutils/audit2allow/sepolgen-ifgen b/policycoreutils/audit2allow/sepolgen-ifgen index 3967ba51..83c7ecfa 100644 --- a/policycoreutils/audit2allow/sepolgen-ifgen +++ b/policycoreutils/audit2allow/sepolgen-ifgen @@ -63,7 +63,7 @@ def parse_options(): def get_policy(): p = selinux.selinux_current_policy_path() - if os.path.exists(p): + if p and os.path.exists(p): return p i = selinux.security_policyvers() p = selinux.selinux_binary_policy_path() + "." + str(i)