1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-19 23:33:15 +03:00

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>
This commit is contained in:
Andreas Schneider
2013-11-06 17:43:19 +01:00
committed by Stefan Metzmacher
parent 15feb84273
commit 6118c2ec2c
4 changed files with 5 additions and 5 deletions

View File

@@ -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));