mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Revert "vfs_default.c: prefer capabilities over become_root"
This reverts commit 62464bd2db
.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15583
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
10c7a3e47c
commit
52ad635b27
@ -1897,14 +1897,14 @@ static void vfswrap_get_dos_attributes_getxattr_done(struct tevent_req *subreq)
|
||||
|
||||
state->as_root = true;
|
||||
|
||||
set_effective_capability(DAC_OVERRIDE_CAPABILITY);
|
||||
become_root();
|
||||
subreq = SMB_VFS_GETXATTRAT_SEND(state,
|
||||
state->ev,
|
||||
state->dir_fsp,
|
||||
state->smb_fname,
|
||||
SAMBA_XATTR_DOS_ATTRIB,
|
||||
sizeof(fstring));
|
||||
drop_effective_capability(DAC_OVERRIDE_CAPABILITY);
|
||||
unbecome_root();
|
||||
if (tevent_req_nomem(subreq, req)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user