summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-07-21 19:09:36 +0000
committerChris Lumens <clumens@redhat.com>2005-07-21 19:09:36 +0000
commite3c4006bfc19c00ebfae51bf26068c7a365ec9ae (patch)
treea7192fd40c20ab8f7269912dbdde7ec739c6a4bb /installclass.py
parent8688fe266e68ceb3f2e76aed2d957fd642b890ed (diff)
downloadanaconda-e3c4006bfc19c00ebfae51bf26068c7a365ec9ae.tar.gz
anaconda-e3c4006bfc19c00ebfae51bf26068c7a365ec9ae.tar.xz
anaconda-e3c4006bfc19c00ebfae51bf26068c7a365ec9ae.zip
Remove firewall configuration screen. This will be coming back in
firstboot using system-config-securitylevel.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py22
1 files changed, 3 insertions, 19 deletions
diff --git a/installclass.py b/installclass.py
index ca90e279d..5d56a645b 100644
--- a/installclass.py
+++ b/installclass.py
@@ -135,7 +135,6 @@ class BaseInstallClass:
"bootloader",
"networkdevicecheck",
"network",
- "firewall",
"timezone",
"accounts",
"readcomps",
@@ -365,24 +364,9 @@ class BaseInstallClass:
def setFirewall(self, id, enable = 1, trusts = [], ports = []):
id.firewall.enabled = enable
id.firewall.trustdevs = trusts
- # this is a little ugly, but we want to let setting a service
- # like --ssh enable the service in case they're doing an interactive
- # kickstart install
- for port in ports:
- found = 0
- for s in id.firewall.services:
- p = s.get_ports()
- # don't worry about the ones that are more than one,
- # this is really for legacy use only
- if len(p) > 1:
- continue
- if p[0] == port:
- s.set_enabled(1)
- found = 1
- break
-
- if not found:
- id.firewall.portlist.append(port)
+
+ for port in ports:
+ id.firewall.portlist.append (port)
def setMiscXSettings(self, id, depth = None, resolution = None,
desktop = None, runlevel = None):