Revision 97628462 lib/backend.py
b/lib/backend.py | ||
---|---|---|
921 | 921 |
file_name) |
922 | 922 |
return False |
923 | 923 |
|
924 |
allowed_files = [constants.CLUSTER_CONF_FILE, "/etc/hosts", |
|
925 |
constants.SSH_KNOWN_HOSTS_FILE] |
|
924 |
allowed_files = [ |
|
925 |
constants.CLUSTER_CONF_FILE, |
|
926 |
constants.ETC_HOSTS, |
|
927 |
constants.SSH_KNOWN_HOSTS_FILE, |
|
928 |
] |
|
926 | 929 |
allowed_files.extend(ssconf.SimpleStore().GetFileList()) |
927 | 930 |
if file_name not in allowed_files: |
928 | 931 |
logger.Error("Filename passed to UploadFile not in allowed" |
Also available in: Unified diff