diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-01-13 06:27:36 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-01-13 06:27:36 +0000 |
commit | 2135bea9af88c4a57cb9b62a6395368e0b1d75be (patch) | |
tree | 6ad583e127510cc5706d0e189ec9d12737f736a6 /firewall.py | |
parent | 343fdd4457b79d4a24c222daed1f541956db5a2e (diff) | |
download | anaconda-2135bea9af88c4a57cb9b62a6395368e0b1d75be.tar.gz anaconda-2135bea9af88c4a57cb9b62a6395368e0b1d75be.tar.xz anaconda-2135bea9af88c4a57cb9b62a6395368e0b1d75be.zip |
write out an /etc/sysconfig/redhat-config-securitylevel to make it so that redhat-config-securitylevel can read the iptables settings after install (#81472)
Diffstat (limited to 'firewall.py')
-rw-r--r-- | firewall.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firewall.py b/firewall.py index 3d4cbefec..dae3b0705 100644 --- a/firewall.py +++ b/firewall.py @@ -98,6 +98,13 @@ class Firewall: log ("lokkit run failed: %s", msg) except OSError, (errno, msg): log ("lokkit run failed: %s", msg) + else: + f = open(instPath + + '/etc/sysconfig/redhat-config-securitylevel', 'r') + f.write("# redhat-config-securitylevel config written out by anaconda\n\n") + for arg in args[3:]: + f.write("%s\n" %(arg,)) + else: # remove /etc/sysconfig/ipchains file = instPath + "/etc/sysconfig/ipchains" |