From owner-svn-src-projects@freebsd.org Wed Aug 16 22:48:54 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51065DD78EF for ; Wed, 16 Aug 2017 22:48:54 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1B3277320C; Wed, 16 Aug 2017 22:48:54 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7GMmrjp077155; Wed, 16 Aug 2017 22:48:53 GMT (envelope-from rmacklem@FreeBSD.org) Received: (from rmacklem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7GMmrhS077154; Wed, 16 Aug 2017 22:48:53 GMT (envelope-from rmacklem@FreeBSD.org) Message-Id: <201708162248.v7GMmrhS077154@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rmacklem set sender to rmacklem@FreeBSD.org using -f From: Rick Macklem Date: Wed, 16 Aug 2017 22:48:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r322599 - projects/pnfs-planb-server/sys/fs/nfs X-SVN-Group: projects X-SVN-Commit-Author: rmacklem X-SVN-Commit-Paths: projects/pnfs-planb-server/sys/fs/nfs X-SVN-Commit-Revision: 322599 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2017 22:48:54 -0000 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);