diff options
author | Ryan Moeller <[email protected]> | 2020-02-04 11:40:08 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-04 08:40:07 -0800 |
commit | 8c4987c489c842a7dcd2356bdfd53e2aacc33316 (patch) | |
tree | 0a08a1cd7d9a3bae4c1c56667dccfdd2bb73e604 /man | |
parent | 07bc2bc2319655c0a9dd92f4a732467bfeac4874 (diff) |
Restore aclmode and remove acltype on FreeBSD
This replaces the placeholder ZFS_PROP_PRIVATE with ZFS_PROP_ACLMODE,
matching what is done in the NFSv4 ACLs PR (#9709).
On FreeBSD we hide ZFS_PROP_ACLTYPE, while on Linux we hide
ZFS_PROP_ACLMODE.
The tests already assume this arrangement.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #9913
Diffstat (limited to 'man')
-rw-r--r-- | man/man8/zfsprops.8 | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/man/man8/zfsprops.8 b/man/man8/zfsprops.8 index da3280a9f..ba96aefc6 100644 --- a/man/man8/zfsprops.8 +++ b/man/man8/zfsprops.8 @@ -37,7 +37,7 @@ .\" Copyright 2018 Nexenta Systems, Inc. .\" Copyright 2019 Joyent, Inc. .\" -.Dd June 30, 2019 +.Dd January 30, 2020 .Dt ZFSPROPS 8 .Os Linux .Sh NAME @@ -599,8 +599,58 @@ accordance to the requested mode from the application. The .Sy aclinherit property does not apply to POSIX ACLs. +.It Sy aclmode Ns = Ns Sy discard Ns | Ns Sy groupmask Ns | Ns Sy passthrough +.Ns Sy restricted +Controls how an +.Tn ACL +is modified during +.Xr chmod 2 . +This property is not visible on Linux yet. +.Bl -tag -width "passthrough" +.It Sy discard +default, deletes all +.Tn ACL +entries that do not represent the mode of the file. +.It Sy groupmask +reduces permissions granted in all +.Em ALLOW +entried found in the +.Tn ACL +such that they are no greater than the group permissions specified by +.Xr chmod 2 . +.It Sy passthrough +indicates that no changes are made to the +.Tn ACL +other than creating or updating the necessary +.Tn ACL +entries to represent the new mode of the file or directory. +.It Sy restricted +will cause the +.Xr chmod 2 +operation to return an error when used on any file or directory which has +a non-trivial +.Tn ACL +whose entries can not be represented by a mode. +.Xr chmod 2 +is required to change the set user ID, set group ID, or sticky bits on a file +or directory, as they do not have equivalent +.Tn ACL +entries. +In order to use +.Xr chmod 2 +on a file or directory with a non-trivial +.Tn ACL +when +.Sy aclmode +is set to +.Sy restricted , +you must first remove all +.Tn ACL +entries which do not represent the current mode. +.El .It Sy acltype Ns = Ns Sy off Ns | Ns Sy noacl Ns | Ns Sy posixacl Controls whether ACLs are enabled and if so what type of ACL to use. +This property is not visible on FreeBSD yet. .Bl -tag -width "posixacl" .It Sy off default, when a file system has the |