summaryrefslogtreecommitdiffstats
path: root/security.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-04-29 02:16:08 +0000
committerJeremy Katz <katzj@redhat.com>2004-04-29 02:16:08 +0000
commit60a0827913f3ab8c652530aae7b4778aac9c7fa9 (patch)
tree2a17c022eb9fbceccf75c33ab272522fe337983b /security.py
parent291ad5b5c45324576999e780a521ef283bccba7b (diff)
downloadanaconda-60a0827913f3ab8c652530aae7b4778aac9c7fa9.tar.gz
anaconda-60a0827913f3ab8c652530aae7b4778aac9c7fa9.tar.xz
anaconda-60a0827913f3ab8c652530aae7b4778aac9c7fa9.zip
don't fail if we get some bizarre value for selinux stuff, just disable
it instead (#121907)
Diffstat (limited to 'security.py')
-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