[Fedora-livecd-list] imgcreate/kickstart.py

Brian C. Lane bcl at fedoraproject.org
Thu Jan 24 17:02:26 UTC 2013


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

New commits:
commit 712cbd4720d9784463f60104a0ab713414cecf11
Author: Brian C. Lane <bcl at 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)




More information about the livecd mailing list