From nobody Tue May 09 03:47:51 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 4QFkdM5DFDz49Z1y; Tue, 9 May 2023 03:47:51 +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 4QFkdM4F9Nz3J0d; Tue, 9 May 2023 03:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683604071; 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=Xn2dZVmrwfZtRGE1coDGTusoLAcDp+IedSZlS/maMz8=; b=MLOfpyMuhC+aYTK84rm/YyU1qROaqlFe9fWiwe2Y90OWVYlOYeXwO12HFSyLAi5djfhhm8 XQ3BP9PKoxoedN89QSuB9JJvivqX+QXbDZmgD+qTylXAe3WRUzhEthzItyPLglBT51z/ql LKQZhXbwZImXVdz7iAjLge+DjhDO14fslThtU/vWnhAywGiVSqHCuqDw42aJrDbYxSGlNf hVXudsE/VMtrxmPUX4cHEvlyCW98TD+9e5Dt5EVT2FZ0vCqwjKVpI/Bk5MgbaTZxTBuJkF hSlezLEGxNQOum8rxZKGtLdZ1uXRNbgQByEbIV2c2JDMJrSQA/picfwlWz8ETg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683604071; 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=Xn2dZVmrwfZtRGE1coDGTusoLAcDp+IedSZlS/maMz8=; b=FK94PpYaAwjgnYHJjH6SKqRVZwusdtqdn/ZVGk2ubJ9cfQWR+TRcqbxxH4qr5cza5m13BN e5XvOh7IfawowtXenSBe/E9I/FhN1cY9H77nULQbssQFAi2klXXTfGX55UZ/S/bQeLcH0Z Hzr2CI78TmHI34qJTa05HO51MRqhMbZ5WDmTrvJU+MB9ZTVVnmoFRtr8kKsExqqSvMR6IT r4zDCU4f7tb6zUn1tKBqxB8psEI8AT/8Bv7aLmGXZcaRRHyqO6XWn+zHbmgsRdFjIKYN2D plLFIEuQKjusOrwLXz5broYNMU+DhkNpYhTOnltw7b3dQrpAYeWr2BNzFRV28Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683604071; a=rsa-sha256; cv=none; b=AtnHRT0+BUFSjtA3kEyOlnDK9GO45J1cR6kDFeHUamHyEvGMLxTkzLStIQZ1n8fHJ2VZAm KAy0PpJnQutZmAnA2OEif+h09O/Ai7CYf03zIKFA94neG9p5oEsqRVxvicSYbyFPgSIOEr NoYK42O88GamsbcWwih4lC+cWubBkrq4UsOPGXQXJxRQscFZtbtnOSCPJJXIubfAmU7Zwz kaoyMpPuyUkEKAS0wvwIPr5zhArqKubJKEaPYHK+i1NzJE4TtrnC8f/dsARiVB6bJ5JJ5i aAVtPaemt7duKljqjV6K7QSJEI7jkTuKAARx3/eFTSjQpjlq/J8FtA70OTB+tw== 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 4QFkdM3G1lz1RWc; Tue, 9 May 2023 03:47:51 +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 3493lpWg062884; Tue, 9 May 2023 03:47:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3493lpxM062883; Tue, 9 May 2023 03:47:51 GMT (envelope-from git) Date: Tue, 9 May 2023 03:47:51 GMT Message-Id: <202305090347.3493lpxM062883@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 20c61a7c518b - main - 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/main X-Git-Reftype: branch X-Git-Commit: 20c61a7c518b9c2f451118913e10a1525ad0b578 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=20c61a7c518b9c2f451118913e10a1525ad0b578 commit 20c61a7c518b9c2f451118913e10a1525ad0b578 Author: Kyle Evans AuthorDate: 2023-05-09 03:45:12 +0000 Commit: Kyle Evans CommitDate: 2023-05-09 03:45:12 +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. --- 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