diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-03-30 20:45:00 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-03-30 20:45:00 +0000 |
commit | f91d979caade0c13e6b7fbc51a4ba9e3c92660e5 (patch) | |
tree | 56cf3399e93355ae37567c2445ca367d160cf458 /security.py | |
parent | 77a2f06207f67ed7e95fed249ea9a3e7379401ac (diff) | |
download | anaconda-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.py | 5 |
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): |