summaryrefslogtreecommitdiffstats
path: root/textw
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 /textw
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 'textw')
-rw-r--r--textw/firewall_text.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/textw/firewall_text.py b/textw/firewall_text.py
index bb175ab55..d12087e38 100644
--- a/textw/firewall_text.py
+++ b/textw/firewall_text.py
@@ -17,6 +17,7 @@ from snack import *
from constants_text import *
from rhpl.translate import _
from rhpl.log import log
+from flags import flags
class FirewallWindow:
def __call__(self, screen, intf, network, firewall, security):
@@ -241,6 +242,10 @@ class FirewallWindow:
class SELinuxWindow:
def __call__(self, screen, intf, network, firewall, security):
+ if flags.selinux == 0:
+ log("selinux disabled, not showing selinux config screen")
+ return INSTALL_OK
+
self.intf = intf
toplevel = GridFormHelp (screen, _("Security Enhanced Linux"),