Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-109824 / 21.04 / Ensure aclmode set to DISCARD if not using NFSv4 ACLs on SCALE #6627

Merged
merged 1 commit into from Mar 18, 2021

Conversation

anodos325
Copy link
Contributor

Having a discard aclmode ensures that users can "undo" an existing
native ZFS ACL through chmod or setfacl. The ZoL POSIX ACL implementation
writes the POSIX ACL in an xattr separate from the native ZFS ACL and
zfs_acl_chmod_setattr() is used to set POSIX mode during setacl and chmod
requests. If aclmode is set to DISCARD, then existing native ZFS ACL is
replaced with one equivalent to specified mode.

This commit also updates aclmode property names to correct, final ones
returned by openzfs.

@anodos325 anodos325 requested a review from a user March 16, 2021 18:12
Having a discard aclmode ensures that users can "undo" an existing
native ZFS ACL through chmod or setfacl. The ZoL POSIX ACL implementation
writes the POSIX ACL in an xattr separate from the native ZFS ACL and
zfs_acl_chmod_setattr() is used to set POSIX mode during setacl and chmod
requests. If aclmode is set to DISCARD, then existing native ZFS ACL is
replaced with one equivalent to specified mode.

This commit also updates acltype property names to correct, final ones
returned by openzfs. Legacy acltypes are left available as options to
avoid API changes.
@anodos325 anodos325 force-pushed the restrict-aclmode-choices-based-on-acltype branch from d4ba76d to 7467ac6 Compare March 16, 2021 18:22
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. I will try to push this into ZFS so it is automatic in the future. In the meantime, better safe than sorry.

@anodos325 anodos325 added the jira label Mar 16, 2021
@bugclerk bugclerk changed the title Ensure aclmode set to DISCARD if not using NFSv4 ACLs on SCALE NAS-109824 / 21.04 / Ensure aclmode set to DISCARD if not using NFSv4 ACLs on SCALE Mar 16, 2021
@anodos325 anodos325 requested a review from a team March 16, 2021 19:45
@william-gr william-gr requested a review from sonicaj March 18, 2021 13:52
@anodos325 anodos325 merged commit e209eea into master Mar 18, 2021
@anodos325 anodos325 deleted the restrict-aclmode-choices-based-on-acltype branch March 18, 2021 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants