imgcreate/kickstart.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit d593d9774d310771c84532dad2d6d0875ebf3ee6
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jan 23 15:50:45 2013 -0800
correctly check for selinux state (#896610)
The check for selinux_enabled was incorrect. selinux is enabled
when in enforcing or permissive mode.
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index fe0c711..b12cd0c 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -590,4 +590,5 @@ def get_post_scripts(ks):
return scripts
def selinux_enabled(ks):
- return ks.handler.selinux.selinux == ksconstants.SELINUX_ENFORCING
+ return ks.handler.selinux.selinux in (ksconstants.SELINUX_ENFORCING,
+ ksconstants.SELINUX_PERMISSIVE)