HomeFreeBSD

Prevent zfs_acl_chmod() if aclmode restricted and ACL inherited

Description

Prevent zfs_acl_chmod() if aclmode restricted and ACL inherited

In absence of inheriting entry for owner@, group@, or everyone@,
zfs_acl_chmod() is called to set these. This can cause confusion for Samba
admins who do not expect these entries to appear on newly created files and
directories once they have been stripped from from the parent directory.

When aclmode is set to "restricted", chmod is prevented on non-trivial ACLs.
It is not a stretch to assume that in this case the administrator does not want
ZFS to add the missing special entries. Add check for this aclmode, and if an
inherited entry is present skip zfs_acl_chmod().

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Closes #10748

Details

Provenance
andrewAuthored on Aug 23 2020, 4:49 AM
GitHub <noreply@github.com>Committed on Aug 23 2020, 4:49 AM
Parents
rGab4a78c7444f: Update issue template
Branches
Unknown
Tags
Unknown