This reverts commit
944cb51506a94084d7ab52ee044fe6f66e1aaeb9.
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>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Mar 27 10:47:23 UTC 2024 on atb-devel-224
(cherry picked from commit
0dec2ef188a93504da873d927ca2b26f8c491fb8)
Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Wed Mar 27 16:51:00 UTC 2024 on atb-devel-224
/* Add in BUILTIN sids */
- set_effective_capability(DAC_OVERRIDE_CAPABILITY);
+ become_root();
ok = secrets_fetch_domain_sid(lp_workgroup(), &_dom_sid);
if (ok) {
domain_sid = &_dom_sid;
DEBUG(3, ("Failed to fetch domain sid for %s\n",
lp_workgroup()));
}
- drop_effective_capability(DAC_OVERRIDE_CAPABILITY);
+ unbecome_root();
info = talloc_zero(talloc_tos(), struct acct_info);
if (info == NULL) {