From nobody Sat Dec 18 03:03:54 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D166F18E22B9; Sat, 18 Dec 2021 03:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JG9ff37dtz3Fqh; Sat, 18 Dec 2021 03:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4849727CEC; Sat, 18 Dec 2021 03:03:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BI33sns016885; Sat, 18 Dec 2021 03:03:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BI33sUO016884; Sat, 18 Dec 2021 03:03:54 GMT (envelope-from git) Date: Sat, 18 Dec 2021 03:03:54 GMT Message-Id: <202112180303.1BI33sUO016884@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Rick Macklem Subject: git: 80a595a2936d - stable/12 - nfscommon: Fix arguments for priv_check_cred() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 80a595a2936dd4bfe5e8e3f51896b135dd2568b3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639796634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OuD4J+oSsFGVJm+ZEv8cZs1YdmhKq1RCGAXA1T6Vft0=; b=VS2CkHG1LeraNjLYe+CKthn+8iXsWQST6M72cKMNJ7ezWuVUr8JlmnEVczp/MvOSGaCCEc LBOyJBXBqyvhzovIihiV6TqcvffwKBBs8hAd4d7DFOCCRlSCQ7lOm48MShoiaJ9j9R+1w9 A5Q4amED7x87UWXLz2fo7QOkawdceny0J7XEXH7rDQ0XWpeV6VjstKBNMZUi7BlBw0A4lC cCcFTjKWCV4T+/UFlYka5mlwZ907WxosrRs9Gdu20+ctGHLJ1VzkYgVO5yuKXyXL4HrPfH yWgrH8tIMlTHvy43nrV8MZJHGMEXDus9UYYyNNoT2RqcUyMWPy2vxCi8R9c6fg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639796634; a=rsa-sha256; cv=none; b=ZXli/CnFoJoJ2BxG5lNxuOphscalExeRSqRPhPtCaTd0DINR1YCqMOwk1XlPs7pOFZnuV5 0a1dgEtEPRaibauBfxaVl1wSOXF1T+D2fBGtRv1qIIAyiI8PDcrKBD6KOocD+EUSzEKCa8 p2e5otV2TLFLnFh+yMvD70gsX+4K+npl5AjA7wRT1PvHgcalPqncSnMudH5XW3LnpyOT6n gmXvWh4LxYeJ4voOwpxX3wawe8ULPKBserhNZ75pGX2LI7gwuBeXUaaTn0/WRNsHUnhtUy EeDKGqRlUzteBWQXjjQqQ7fy95UslwTQ5g1HyvTJhtJCLIDF+cUP4o9czZFEcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=80a595a2936dd4bfe5e8e3f51896b135dd2568b3 commit 80a595a2936dd4bfe5e8e3f51896b135dd2568b3 Author: Rick Macklem AuthorDate: 2021-12-18 03:00:50 +0000 Commit: Rick Macklem CommitDate: 2021-12-18 03:00:50 +0000 nfscommon: Fix arguments for priv_check_cred() Cherry-pick commit b386392ea909 resulted in a missing argument for priv_check_cred(). This patch fixes this. This is a direct commit. --- sys/fs/nfs/nfs_commonsubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c index 1b3caba07b07..c7271cffe1ab 100644 --- a/sys/fs/nfs/nfs_commonsubs.c +++ b/sys/fs/nfs/nfs_commonsubs.c @@ -1980,7 +1980,7 @@ nfsv4_loadattr(struct nfsrv_descript *nd, vnode_t vp, NFSM_DISSECT(tl, u_int32_t *, NFSX_HYPER); if (compare) { if (priv_check_cred(cred, - PRIV_VFS_BLOCKRESERVE)) + PRIV_VFS_BLOCKRESERVE, 0)) uquad = sbp->f_bfree; else uquad = (uint64_t)sbp->f_bavail;