This reverts commit
62464bd2db2a95b1253364f4493bbb6770b73193.
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>
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;
}