Revision 82122173 lib/backend.py

b/lib/backend.py
122 122

  
123 123
  utils.RunCmd(["/etc/init.d/ssh", "restart"])
124 124

  
125
  utils.RemoveFile("/root/.ssh/known_hosts")
126 125
  return True
127 126

  
128 127

  
......
790 789
    return False
791 790

  
792 791
  allowed_files = [constants.CLUSTER_CONF_FILE, "/etc/hosts",
793
                   "/etc/ssh/ssh_known_hosts"]
792
                   constants.SSH_KNOWN_HOSTS_FILE]
794 793
  allowed_files.extend(ssconf.SimpleStore().GetFileList())
795 794
  if file_name not in allowed_files:
796 795
    logger.Error("Filename passed to UploadFile not in allowed"

Also available in: Unified diff