From a3f9f296fd8d14233b1d28a8168e34f8c485d69a Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Tue, 3 Feb 2009 10:45:12 +0000
Subject: [PATCH] Give a sane permission to the known_host file

Reviewed-by: iustinp
---
 lib/ssh.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ssh.py b/lib/ssh.py
index 5d94b1a89..e87b19da7 100644
--- a/lib/ssh.py
+++ b/lib/ssh.py
@@ -233,6 +233,6 @@ def WriteKnownHostsFile(cfg, file_name):
   """Writes the cluster-wide equally known_hosts file.
 
   """
-  utils.WriteFile(file_name, mode=0700,
+  utils.WriteFile(file_name, mode=0600,
                   data="%s ssh-rsa %s\n" % (cfg.GetClusterName(),
                                             cfg.GetHostKey()))
-- 
GitLab