diff options
-rw-r--r-- | usr/src/uts/common/fs/zfs/zfs_acl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/uts/common/fs/zfs/zfs_acl.c b/usr/src/uts/common/fs/zfs/zfs_acl.c index 5eeed0bb88..f78a9cd000 100644 --- a/usr/src/uts/common/fs/zfs/zfs_acl.c +++ b/usr/src/uts/common/fs/zfs/zfs_acl.c @@ -168,6 +168,13 @@ zfs_mode_compute(znode_t *zp, zfs_acl_t *aclp) for (i = 0, acep = aclp->z_acl; i != aclp->z_acl_count; i++, acep++) { + + /* + * Skip over inherit only ACEs + */ + if (acep->a_flags & ACE_INHERIT_ONLY_ACE) + continue; + entry_type = (acep->a_flags & ACE_TYPE_FLAGS); if (entry_type == ACE_OWNER) { if ((acep->a_access_mask & ACE_READ_DATA) && |