From nobody Tue May 30 06:02:49 2023 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 4QVhdP2dX3z4Xv1H; Tue, 30 May 2023 06:02:49 +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 4QVhdP1xCBz3C0h; Tue, 30 May 2023 06:02:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685426569; 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=8BUQ+V+KjizvaSl+4aFrrruVHY6NkEAV8pp723vPRRU=; b=O+R+OMNMxfibGJrpPprrTxfuLKqT5u9u5JdzWFutQjkGhTaeDL7hv5BOw+1J9BjYXU7SU0 skXRMujEgQpUUBcA3aF3QrQXaQ4KM+MSConRhTe8q/QdfSZkWHhzQU0C9hByQ3uV8SxQDA 4+XUmzJHNajuai4CSxwoNCYYpbOmscAAigO/DiS9lpXpYSlvupnolVpGb49DrcyUeLR3SD umiA059faV0wnXGBPeOsegTdTN+rGUgCFgqRTNYIKojTsBhU5Az/uN+fF8D1xJF/dTJkzr CQoW1RjRLNLnSQMZROxFkNtmlrYRLPtFAwdd5eFXFA/1Sgu2AJjZo+llk8w7gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685426569; 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=8BUQ+V+KjizvaSl+4aFrrruVHY6NkEAV8pp723vPRRU=; b=D5nasatgtY71ZwPzOZVvHiZDufBfDxIGMWTx7TCapWRqk+IL4aPMT9XEwjwSj5CXG0YCPm LB6dvfDp0AGxX0ibjLXuqhQxlGZ+8R/EsDQWH9CjKikNDnOMi4vMRzE3rTeIaQ2ROUyTun 1qSwMWAmzLAwxTytiCOH8FWyQkFMP7M3PXGq6SgucDZOk7Cx6pFSr9jzza1yiLd/MfTddZ g9+7DiIkjKp9e+0Zhjqnpsge12XpzqbjnC7Enx/R8UiV1/+QQR+FEz5HkJxxBFGLTX9+sA LQhNllBtU4dbcUjO/LEBofDsqqjE1GlkG/53tE+d6qCGsmYuexXtir9c78ShGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685426569; a=rsa-sha256; cv=none; b=YLzTUUBhWFTD+GXGemNnH9FgORUE5OhAqSDQyMLrVh7n5ScrxA5QDJdGxUYxVyVSoTN4WJ fs7JanNbjvoSEQjQqSoG0J+y6jqbo1Kt+YK1NACLMcviXE0TdrWCJXdu81qVphBW8kjGH+ 0x8KY5QdhQM41zGofM5R4m/ddxJCwP/OhOEOZ9KN8L/QvXzGY+VmcBMyI5uMoRd5tG81GQ JtiO7f9XQSNozSbSk4vryUF5H+LqdpiwrvKzfWYcCc2oENE1xmwpBq1nB7XZlW1ytvrzJm 0PiCIC3UJAFbSeYb4uHXW64aez4PiYjaSYZqXbrlb5rBe0kuR4QgtGaW7hK6iA== 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 4QVhdP0zxmzjQx; Tue, 30 May 2023 06:02:49 +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 34U62nlQ025119; Tue, 30 May 2023 06:02:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34U62nXx025118; Tue, 30 May 2023 06:02:49 GMT (envelope-from git) Date: Tue, 30 May 2023 06:02:49 GMT Message-Id: <202305300602.34U62nXx025118@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 7a292504bad8 - main - __acl_get_fd(2), __acl_aclcheck_fd(2): enable for O_PATH filedescriptors 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a292504bad8467915f072f0576b2a07c76de1f5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=7a292504bad8467915f072f0576b2a07c76de1f5 commit 7a292504bad8467915f072f0576b2a07c76de1f5 Author: Konstantin Belousov AuthorDate: 2023-05-29 15:07:18 +0000 Commit: Konstantin Belousov CommitDate: 2023-05-30 05:53:56 +0000 __acl_get_fd(2), __acl_aclcheck_fd(2): enable for O_PATH filedescriptors PR: 271704 Reported by: Peter Eriksson Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40318 --- lib/libc/sys/open.2 | 3 ++- sys/kern/vfs_acl.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 574b6b136d39..232226a00ae6 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -28,7 +28,7 @@ .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" $FreeBSD$ .\" -.Dd March 2, 2023 +.Dd May 29, 2023 .Dt OPEN 2 .Os .Sh NAME @@ -344,6 +344,7 @@ message using for .Dv EVFILT_VNODE .It Xr readlinkat 2 +.It Xr __acl_get_fd 2 , Xr __alc_aclcheck_fd 2 .El But operations like .Xr read 2 , diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c index 927005e6d452..1e8122cb68c1 100644 --- a/sys/kern/vfs_acl.c +++ b/sys/kern/vfs_acl.c @@ -436,7 +436,7 @@ sys___acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap) int error; AUDIT_ARG_FD(uap->filedes); - error = getvnode(td, uap->filedes, + error = getvnode_path(td, uap->filedes, cap_rights_init_one(&rights, CAP_ACL_GET), &fp); if (error == 0) { error = vacl_get_acl(td, fp->f_vnode, uap->type, uap->aclp); @@ -570,7 +570,7 @@ sys___acl_aclcheck_fd(struct thread *td, struct __acl_aclcheck_fd_args *uap) int error; AUDIT_ARG_FD(uap->filedes); - error = getvnode(td, uap->filedes, + error = getvnode_path(td, uap->filedes, cap_rights_init_one(&rights, CAP_ACL_CHECK), &fp); if (error == 0) { error = vacl_aclcheck(td, fp->f_vnode, uap->type, uap->aclp);