smbacl4_dump_nfs4acl(10, theacl);
if (set_acl_as_root) {
- set_effective_capability(DAC_OVERRIDE_CAPABILITY);
+ become_root();
}
result = set_nfs4_native(handle, fsp, theacl);
saved_errno = errno;
if (set_acl_as_root) {
- drop_effective_capability(DAC_OVERRIDE_CAPABILITY);
+ unbecome_root();
}
TALLOC_FREE(frame);