Skip to content

Commit

Permalink
Revert "Skip permission checks for POSIX ACL type"
Browse files Browse the repository at this point in the history
This reverts commit 465cef1.
  • Loading branch information
ixhamza committed Dec 28, 2022
1 parent 739135d commit c3029e4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions module/os/linux/zfs/zfs_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2608,13 +2608,8 @@ zfs_zaccess_common(znode_t *zp, uint32_t v4_mode, uint32_t *working_mode,
return (SET_ERROR(EPERM));
}

/*
* Workaround for POSIX ACL type to avoid deadlock
*/
if ((zp->z_pflags & ZFS_ACL_TRIVIAL) &&
zfsvfs->z_acl_type != ZFS_ACLTYPE_POSIX) {
if (zp->z_pflags & ZFS_ACL_TRIVIAL)
return (zfs_zaccess_trivial(zp, working_mode, cr));
}

return (zfs_zaccess_aces_check(zp, working_mode, B_FALSE, cr));
}
Expand Down

0 comments on commit c3029e4

Please sign in to comment.