From 90fae62710f3b0e721f78bf190502e8b5fa989f3 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 27 Jun 2008 14:27:56 +0000
Subject: [PATCH] Allow VNC_PASSWORD_FILE to be rpc-uploaded

What could possibly go wrong?

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

diff --git a/lib/backend.py b/lib/backend.py
index 1fb2aea87..382eec55a 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -982,6 +982,7 @@ def UploadFile(file_name, data, mode, uid, gid, atime, mtime):
     constants.CLUSTER_CONF_FILE,
     constants.ETC_HOSTS,
     constants.SSH_KNOWN_HOSTS_FILE,
+    constants.VNC_PASSWORD_FILE,
     ]
   allowed_files.extend(ssconf.SimpleStore().GetFileList())
   if file_name not in allowed_files:
-- 
GitLab