DEBUG(5,("set_canon_ace_list: acl group control on and current user in file %s primary group.\n",
fsp->fsp_name ));
- become_root_uid_only();
+ become_root();
sret = SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl);
- unbecome_root_uid_only();
+ unbecome_root();
if (sret == 0) {
ret = True;
}
DEBUG(5,("set_canon_ace_list: acl group control on and current user in file %s primary group.\n",
fsp->fsp_name ));
- become_root_uid_only();
+ become_root();
sret = SMB_VFS_SYS_ACL_SET_FD(fsp, fsp->fh->fd, the_acl);
- unbecome_root_uid_only();
+ unbecome_root();
if (sret == 0) {
ret = True;
}
/* Case (3) */
( has_restore_priv ) ) {
- become_root_uid_only();
+ become_root();
/* Keep the current file gid the same - take ownership doesn't imply group change. */
ret = SMB_VFS_CHOWN(conn, fname, uid, (gid_t)-1);
- unbecome_root_uid_only();
+ unbecome_root();
return ret;
}
}
*/
uid = current_user.ut.uid;
- become_root_uid_only();
+ become_root();
/* Keep the current file gid the same. */
ret = SMB_VFS_FCHOWN(fsp, fsp->fh->fd, uid, (gid_t)-1);
- unbecome_root_uid_only();
+ unbecome_root();
close_file_fchmod(fsp);
"current user in file %s primary group. Override delete_def_acl\n",
fsp->fsp_name ));
- become_root_uid_only();
+ become_root();
sret = SMB_VFS_SYS_ACL_DELETE_DEF_FILE(conn, fsp->fsp_name);
- unbecome_root_uid_only();
+ unbecome_root();
}
if (sret == -1) {
"current user in file %s primary group. Override chmod\n",
fsp->fsp_name ));
- become_root_uid_only();
+ become_root();
sret = SMB_VFS_CHMOD(conn,fsp->fsp_name, posix_perms);
- unbecome_root_uid_only();
+ unbecome_root();
}
if (sret == -1) {