zfs/module
Andrew d1df3f6cab Add ability for xattr handler to "strip" NFSv4 ACL (#54)
On Linux POSIX ACLs can be removed via rmxattr() for the
relevant system xattrs. On FreeBSD a non-trivial ACL
can be converted to one that is described by the mode with
no loss of info via combination of acl_get_file(), acl_strip_np(),
and acl_set_file(). Since there's no libc equivalent of these
ops in Linux for NFSv4 ACLs, this commit makes this less error
prone by handling entirely in ZFS. When user performs
rmxattr() vfs_setxattr() is called with value of NULL and length
of 0. Add special handling for this situation in the xattr
handler for the NFSv4 ACL so that we generate a new ACL and
zfs_acl_chmod() with the existing mode of file, then set the ACL.

Signed-off-by: Andrew Walker <awalker@ixsystems.com>
2024-02-29 23:31:47 +05:00
..
avl Suppress Clang Static Analyzer false positive in the AVL tree code. 2023-03-08 13:51:21 -08:00
icp module/icp/asm-arm/sha2: enable non-SIMD asm kernels on armv5/6 2023-12-05 12:01:09 -08:00
lua LUA: Backport CVE-2020-24370's patch 2024-02-07 11:53:05 -08:00
nvpair nvpair: Constify string functions 2023-03-14 15:25:50 -07:00
os Add ability for xattr handler to "strip" NFSv4 ACL (#54) 2024-02-29 23:31:47 +05:00
unicode Illumos #15286: do_composition() needs sign awareness 2023-01-05 11:16:21 -08:00
zcommon Make acltype=nfsv4 the default on Linux, too 2024-02-29 23:31:47 +05:00
zfs ddt: document the theory and the key data structures 2024-02-15 11:46:00 -08:00
zstd Resolve WS-2021-0184 vulnerability in zstd 2023-02-02 15:12:51 -08:00
.gitignore FreeBSD: Ignore symlink to i386 includes 2022-08-02 16:34:23 -07:00
Kbuild.in Implement NFSv41 ACLs through xattr 2024-02-29 23:29:18 +05:00
Makefile.bsd ddt: rework ops interface in terms of keys and values 2024-02-15 11:45:38 -08:00
Makefile.in Implement NFSv41 ACLs through xattr 2024-02-29 23:29:18 +05:00