[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH rhel5-branch] Add --no-ssh to the generated anaconda-ks.cfg.



Resolves: rhbz#703081
---
 firewall.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/firewall.py b/firewall.py
index 22eb3fd..af152e3 100644
--- a/firewall.py
+++ b/firewall.py
@@ -33,6 +33,9 @@ class Firewall:
     def writeKS(self, f):
 	f.write("firewall")
 
+        if not "22:tcp" in self.portlist:
+            f.write(" --no-ssh")
+
         if self.enabled:
 	    for arg in self.getArgList():
 		f.write(" " + arg)
-- 
1.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]