diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-10-14 07:33:12 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-10-14 07:33:12 +0000 |
commit | d8cee73f6ab56d8ec6fb2b9969cefb9d9d521bb4 (patch) | |
tree | df6dc311a9e6d44376c32fdd8e9a35bf68d50ef5 /rdiff-backup/rdiff_backup/Security.py | |
parent | 8ca3cf2a1d13e07988b6b7bc7f8c27fe6d150fb4 (diff) | |
download | rdiff-backup-d8cee73f6ab56d8ec6fb2b9969cefb9d9d521bb4.tar.gz |
Final changes for 0.13.3
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@474 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/Security.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/Security.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/rdiff-backup/rdiff_backup/Security.py b/rdiff-backup/rdiff_backup/Security.py index 1805703..a3cb798 100644 --- a/rdiff-backup/rdiff_backup/Security.py +++ b/rdiff-backup/rdiff_backup/Security.py @@ -20,7 +20,7 @@ """Functions to make sure remote requests are kosher""" import sys, tempfile -import Globals, Main, rpath +import Globals, Main, rpath, log class Violation(Exception): """Exception that indicates an improper request has been received""" @@ -125,6 +125,7 @@ def set_allowed_requests(sec_level): ["C.make_file_dict", "rpath.ea_get", "rpath.acl_get", + "rpath.setdata_local", "log.Log.log_to_file", "os.getuid", "os.listdir", @@ -182,7 +183,7 @@ def vet_request(request, arglist): if isinstance(arg, rpath.RPath): vet_rpath(arg) if security_level == "all": return if request.function_string in allowed_requests: return - if request.function_string == "Globals.set": + if request.function_string in ("Globals.set", "Globals.set_local"): if Globals.server and arglist[0] not in disallowed_server_globals: return raise Violation("\nWarning Security Violation!\n" @@ -204,7 +205,3 @@ def vet_rpath(rpath): "Request to handle path %s\n" "which doesn't appear to be within " "restrict path %s.\n" % (normalized, restrict)) - - - - |