]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFSD: Add nfsd4_encode_fattr4_posix_default_acl
authorRick Macklem <rmacklem@uoguelph.ca>
Fri, 9 Jan 2026 16:21:35 +0000 (11:21 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 29 Jan 2026 14:48:33 +0000 (09:48 -0500)
commit5e62c904e4dcc0e53471edca6347cdbc20fd18f8
tree6da34603a6c1e2f4e6c075cf0c33135222ec9f24
parent8093c31f2c959d6d92a33d9161d5e2c53d69720f
NFSD: Add nfsd4_encode_fattr4_posix_default_acl

The POSIX ACL extension to NFSv4 defines FATTR4_POSIX_DEFAULT_ACL
for retrieving a directory's default ACL. This patch adds the
XDR encoder for that attribute.

For directories, the default ACL is retrieved via get_inode_acl()
and each entry is encoded as a posixace4: tag type, permission
bits, and principal name (empty for structural entries like
USER_OBJ/GROUP_OBJ/MASK/OTHER, resolved via idmapping for
USER/GROUP entries).

Signed-off-by: Rick Macklem <rmacklem@uoguelph.ca>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c