summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server/rpc_handles.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-11-06 17:43:19 +0100
committerStefan Metzmacher <metze@samba.org>2014-04-17 14:56:06 +0200
commit6118c2ec2c3770e10fd3683c3a0b07ad43a8a10b (patch)
tree90b185ec086c7434878593defb8e8f4b9a8bb912 /source3/rpc_server/rpc_handles.c
parent15feb84273c65dbe2d3f502861c7f520c46dc9d3 (diff)
downloadsamba-6118c2ec2c3770e10fd3683c3a0b07ad43a8a10b.tar.gz
samba-6118c2ec2c3770e10fd3683c3a0b07ad43a8a10b.tar.xz
samba-6118c2ec2c3770e10fd3683c3a0b07ad43a8a10b.zip
s3: Use root_mode() to get uid_wrapper working correctly.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_server/rpc_handles.c')
-rw-r--r--source3/rpc_server/rpc_handles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/rpc_handles.c b/source3/rpc_server/rpc_handles.c
index 409299abce..d06848ae1b 100644
--- a/source3/rpc_server/rpc_handles.c
+++ b/source3/rpc_server/rpc_handles.c
@@ -505,7 +505,7 @@ void *_policy_handle_find(struct pipes_struct *p,
return NULL;
}
if ((access_required & rpc_hnd->access_granted) != access_required) {
- if (geteuid() == sec_initial_uid()) {
+ if (root_mode()) {
DEBUG(4, ("%s: ACCESS should be DENIED (granted: "
"%#010x; required: %#010x)\n", location,
rpc_hnd->access_granted, access_required));