From 5b099da989b214f042605f96b62810631198ec5f Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 19 Dec 2008 19:31:17 +0000 Subject: [PATCH] ganeti.bootstrap: Set permissions on newly uploaded files Reviewed-by: amishchenko --- lib/bootstrap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bootstrap.py b/lib/bootstrap.py index 0d998f05c..048b66e07 100644 --- a/lib/bootstrap.py +++ b/lib/bootstrap.py @@ -348,9 +348,11 @@ def SetupNodeDaemon(cluster_name, node, ssh_key_check): "%s!EOF.\n" "cat > '%s' << '!EOF.' && \n" "%s!EOF.\n" + "chmod 0400 %s %s && " "%s restart" % (constants.SSL_CERT_FILE, noded_cert, constants.RAPI_CERT_FILE, rapi_cert, + constants.SSL_CERT_FILE, constants.RAPI_CERT_FILE, constants.NODE_INITD_SCRIPT)) result = sshrunner.Run(node, 'root', mycommand, batch=False, -- GitLab