]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscommon: Add arguments for support of the dacl attribute
authorRick Macklem <rmacklem@FreeBSD.org>
Mon, 27 Dec 2021 00:37:02 +0000 (16:37 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Mon, 27 Dec 2021 00:43:46 +0000 (16:43 -0800)
commit0fa074b53e7c22157dcb41aaa25a33abc8118f26
tree9fa43c69bb10bf4cfe60f3e89048b49f5af66b98
parent2f1a46d12b035084cf2836043f8c1f3f23ede9c5
nfscommon: Add arguments for support of the dacl attribute

NFSv4.1/4.2 has an alternative to the acl attribute, called
dacl, that includes support for the ACL_ENTRY_INHERITED flag,
called NFSV4ACE_INHERITED in NFSv4.

This patch adds a dacl argument to nfsrv_buildacl(),
nfsrv_dissectacl() and nfsrv_dissectace(), so that they
will handle NFSV4ACE_INHERITED when dacl == true.

Since these functions are always called with dacl == false
for this patch, semantics should not have changed.
A future patch will add support for dacl.

MFC after: 2 weeks
sys/fs/nfs/nfs_commonacl.c
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfs_var.h
sys/fs/nfs/nfsproto.h
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsserver/nfs_nfsdport.c