Commit 4600e590 authored by bescoto's avatar bescoto

Fixed some --restrict options


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@446 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent a5b72ab2
New in v0.13.3 (??????????)
---------------------------
Fixed some of the --restrict options which would cause spurious
violation errors.
New in v0.13.2 (2003/09/16)
---------------------------
......
......@@ -131,7 +131,9 @@ def set_allowed_requests(sec_level):
"Time.setcurtime_local",
"rpath.gzip_open_local_read",
"rpath.open_local_read",
"Hardlink.initialize_dictionaries"])
"Hardlink.initialize_dictionaries",
"user_group.uid2uname",
"user_group.gid2gname"])
if sec_level == "read-only":
allowed_requests.extend(
["fs_abilities.get_fsabilities_readonly",
......@@ -166,7 +168,9 @@ def set_allowed_requests(sec_level):
"Globals.postset_regexp_local",
"Globals.set_select",
"backup.SourceStruct.set_session_info",
"backup.DestinationStruct.set_session_info"])
"backup.DestinationStruct.set_session_info",
"user_group.init_user_mapping",
"user_group.init_group_mapping"])
def vet_request(request, arglist):
"""Examine request for security violations"""
......
......@@ -25,7 +25,7 @@ the related connections.
"""
import os
import os, sys
from log import Log
import Globals, connection, rpath
......@@ -223,9 +223,9 @@ def test_connection(conn_number):
print "Testing server started by: ", __conn_remote_cmds[conn_number]
conn = Globals.connections[conn_number]
try:
assert conn.pow(2,3) == 8
assert conn.os.path.join("a", "b") == "a/b"
version = conn.reval("lambda: Globals.version")
assert conn.Globals.get('current_time') is None
assert type(conn.os.getuid()) is int
version = conn.Globals.get('version')
except:
sys.stderr.write("Server tests failed\n")
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment