All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 03/05] selinux_current_policy_path will return none on a disabled SELinux system
@ 2013-11-13 15:43 Dan Walsh
  2013-11-13 15:43 ` [PATCH 04/05] Add -P semodule option to man page Dan Walsh
  2013-11-13 15:43 ` [PATCH 05/05] Verify type being passed into semanage permissive is a valid domain Dan Walsh
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Walsh @ 2013-11-13 15:43 UTC (permalink / raw)
  To: sds, eparis; +Cc: selinux, Dan Walsh

---
 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 3967ba5..83c7ecf 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)
-- 
1.8.4.2


--
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 related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-13 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 15:43 [PATCH 03/05] selinux_current_policy_path will return none on a disabled SELinux system Dan Walsh
2013-11-13 15:43 ` [PATCH 04/05] Add -P semodule option to man page Dan Walsh
2013-11-13 16:18   ` Stephen Smalley
2013-11-13 15:43 ` [PATCH 05/05] Verify type being passed into semanage permissive is a valid domain Dan Walsh
2013-11-13 15:45   ` Daniel J Walsh

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.