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:
committed by
Stefan Metzmacher
parent
15feb84273
commit
6118c2ec2c
@@ -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));
|
||||
|
Reference in New Issue
Block a user