From nobody Wed Jun 21 02:39:33 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 4Qm74j37vZz4gJP2; Wed, 21 Jun 2023 02:39:33 +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 4Qm74j2k2Pz3CfC; Wed, 21 Jun 2023 02:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687315173; 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=+oGBg3ZdLmaLv1n9aYoZbdfYfXo3jZEva5IgomWiVGY=; b=jEklJrMbclj1ZasZ3QAiwV6ca7nDwegLJHg2zByG+6LErbvh1mIq7OIx3BDnk8h3eGpjkT xTZw0uh98QNjquPzgIC62BnSORh1gvJ3co/GLx06oHl9rA8Hg9baVncq8sV85LhqazGg8t tmJ1e/CLfdOv1XhjFSLp6FV9l/yMt012qJzoFIAoQlSFCyec0VlsAw7Bq7yROeswXydx3/ CosVcLKxwjCMmFg8JTgsfUbfTsIF5uPCL6QhH6GUjBQ9rIi4JcsblJscL+lEm6V9HjclO7 v8mAXJSrNxmGP7Jv7FpWIcEo3XX7P0EbeN2N/slztxTBNlxZQwf5BvllGG5MPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687315173; 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=+oGBg3ZdLmaLv1n9aYoZbdfYfXo3jZEva5IgomWiVGY=; b=WJH1It5334hA5aY+f4TcZkmzJ34CbkdJIcGOmjbPSqd+cY05PFhDDWMo/Hdw20BY1QbNK4 yT9qKYMTd7Zz2GpHgcsKY0qGNKWtaczP891WImM5S0NFKuTd3YyM8C9YK+epX29l1MLCN/ ZsoU59HHHXaOSuxyPivy+e0n8Tw5KBxEepV/qzI9mW0BBPBWQT8r0f8VEANGsj/ouplwPq ao+AjPL0tfq1j5kgN5TgdNFQmfCjy+8xmMisoQzshDKOE5ZGLtT0oWH/CxhTF+dJDAmcHY qFzVBX1fZ6m+7Gl+I+8amRivHDYPHL45q7oFBhdoKKQrXNHPSoYoWxnkmN34ng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687315173; a=rsa-sha256; cv=none; b=OBIMGI/3NQc1Yo60LmlrIMgpQA8fbdBa2R9QBa1qCtcnw0loIE6UHMYb7DuJHrA2agCpIV 0yywyiIbOxdYTxSzb1JCXGPvNtz9Uts9pfC4GmMxp7stS/0MAL8jR9XPYnLTliVJtCQ5+Q C1ng2K86yQj5QCMz9y7K6ZaxsWJuVRAzILSQBCgm7M3qR4CsYWhBSA8fQSlruV7UJ3KL0v v0NVosJdLUwxuuRMHIzt+qzvgYyts//sE958R+hczjiCKkfJIcBwI/mRTP+adxNLskllHe Rf3eKJkXTOZxuQkR8TF/IGw6cbK4dVnQXYN0BJg9zeuYGW1CO+gZZh4nNtnD4Q== 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 4Qm74j1NBjzP28; Wed, 21 Jun 2023 02:39:33 +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 35L2dXT0049279; Wed, 21 Jun 2023 02:39:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35L2dXuU049278; Wed, 21 Jun 2023 02:39:33 GMT (envelope-from git) Date: Wed, 21 Jun 2023 02:39:33 GMT Message-Id: <202306210239.35L2dXuU049278@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 92876ef4900b - stable/13 - acl(3): improve discoverability of acl_get_perm_np(3) 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 92876ef4900b0165eb4098db12f2dafa8974e37d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=92876ef4900b0165eb4098db12f2dafa8974e37d commit 92876ef4900b0165eb4098db12f2dafa8974e37d Author: Kyle Evans AuthorDate: 2023-05-09 03:45:12 +0000 Commit: Kyle Evans CommitDate: 2023-06-20 19:03:48 +0000 acl(3): improve discoverability of acl_get_perm_np(3) - Mention it in acl(3) as an available function, xref - Mention it in acl_get_permset(3), as acl_get_perm_np(3) is a natural follow-up to acl_get_permset(3) Sponsored by: Klara, Inc. (cherry picked from commit 20c61a7c518b9c2f451118913e10a1525ad0b578) --- lib/libc/posix1e/acl.3 | 7 ++++++- lib/libc/posix1e/acl_get_permset.3 | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/posix1e/acl.3 b/lib/libc/posix1e/acl.3 index 2c7ebd63ad4e..33b4ad0f7620 100644 --- a/lib/libc/posix1e/acl.3 +++ b/lib/libc/posix1e/acl.3 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 30, 2014 +.Dd May 8, 2023 .Dt ACL 3 .Os .Sh NAME @@ -158,6 +158,10 @@ and may be used to retrieve an ACL type from an ACL entry. This function is described in .Xr acl_get_flagset_np 3 , and may be used to retrieve a flagset from an ACL entry. +.It Fn acl_get_perm_np +This function is described in +.Xr acl_get_perm_np 3 , +and may be used to check if a permission is set in a permset. .It Fn acl_get_permset This function is described in .Xr acl_get_permset 3 , @@ -257,6 +261,7 @@ library. .Xr acl_get_brand_np 3 , .Xr acl_get_entry_type_np 3 , .Xr acl_get_flagset_np 3 , +.Xr acl_get_perm_np 3 , .Xr acl_get_permset 3 , .Xr acl_get_qualifier 3 , .Xr acl_get_tag_type 3 , diff --git a/lib/libc/posix1e/acl_get_permset.3 b/lib/libc/posix1e/acl_get_permset.3 index 064f71ce45bc..5971583b28fc 100644 --- a/lib/libc/posix1e/acl_get_permset.3 +++ b/lib/libc/posix1e/acl_get_permset.3 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 10, 2001 +.Dd May 8, 2023 .Dt ACL_GET_PERMSET 3 .Os .Sh NAME @@ -65,6 +65,7 @@ is not a valid descriptor for an ACL entry. .Xr acl_add_perm 3 , .Xr acl_clear_perms 3 , .Xr acl_delete_perm 3 , +.Xr acl_get_perm_np 3 , .Xr acl_set_permset 3 , .Xr posix1e 3 .Sh STANDARDS