svn commit: r322599 - projects/pnfs-planb-server/sys/fs/nfs

Rick Macklem rmacklem at FreeBSD.org
Wed Aug 16 22:48:54 UTC 2017


Author: rmacklem
Date: Wed Aug 16 22:48:52 2017
New Revision: 322599
URL: https://svnweb.freebsd.org/changeset/base/322599

Log:
  Add the hook for setting ACLs on the DS data files, which was missed during
  the code merge. Without this patch, a pNFS service with ACLs enabled would
  not have enforced the ACL for data access.

Modified:
  projects/pnfs-planb-server/sys/fs/nfs/nfs_commonacl.c

Modified: projects/pnfs-planb-server/sys/fs/nfs/nfs_commonacl.c
==============================================================================
--- projects/pnfs-planb-server/sys/fs/nfs/nfs_commonacl.c	Wed Aug 16 22:46:59 2017	(r322598)
+++ projects/pnfs-planb-server/sys/fs/nfs/nfs_commonacl.c	Wed Aug 16 22:48:52 2017	(r322599)
@@ -471,6 +471,11 @@ nfsrv_setacl(vnode_t vp, NFSACL_T *aclp, struct ucred 
 		goto out;
 	}
 	error = VOP_SETACL(vp, ACL_TYPE_NFS4, aclp, cred, p);
+	if (error == 0) {
+		error = nfsrv_dssetacl(vp, aclp, cred, p);
+		if (error == ENOENT)
+			error = 0;
+	}
 
 out:
 	NFSEXITCODE(error);


More information about the svn-src-projects mailing list