imgcreate/kickstart.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 03cd5ab554b97a4ee48fc5a57448c0d29ec2a5ed
Author: Brian C. Lane <[email protected]>
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 ad69a87..89d61cf 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -563,4 +563,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)


--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to