summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/security.py b/security.py
index 42222d58f..67f77ba65 100644
--- a/security.py
+++ b/security.py
@@ -36,7 +36,8 @@ class Security:
def setSELinux(self, val):
if not selinux_states.has_key(val):
- raise ValueError, "Setting to invalid SELinux state: %s" %(val,)
+ log("Tried to set to invalid SELinux state: %s" %(val,))
+ val = SEL_DISABLED
self.selinux = val