summaryrefslogtreecommitdiffstats
path: root/security.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-03-30 20:45:00 +0000
committerJeremy Katz <katzj@redhat.com>2004-03-30 20:45:00 +0000
commitf91d979caade0c13e6b7fbc51a4ba9e3c92660e5 (patch)
tree56cf3399e93355ae37567c2445ca367d160cf458 /security.py
parent77a2f06207f67ed7e95fed249ea9a3e7379401ac (diff)
downloadanaconda-f91d979caade0c13e6b7fbc51a4ba9e3c92660e5.tar.gz
anaconda-f91d979caade0c13e6b7fbc51a4ba9e3c92660e5.tar.xz
anaconda-f91d979caade0c13e6b7fbc51a4ba9e3c92660e5.zip
if selinux is disabled, then don't allow configuring it since we won't
get file contexts
Diffstat (limited to 'security.py')
-rw-r--r--security.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/security.py b/security.py
index 7771dc70c..42222d58f 100644
--- a/security.py
+++ b/security.py
@@ -29,7 +29,10 @@ selinux_states = { SEL_DISABLED: "disabled",
class Security:
def __init__(self):
- self.selinux = SEL_ENFORCING
+ if flags.selinux == 1:
+ self.selinux = SEL_ENFORCING
+ else:
+ self.selinux = SEL_DISABLED
def setSELinux(self, val):
if not selinux_states.has_key(val):