From nobody Thu Sep 28 15:10:52 2023 X-Original-To: dev-commits-src-main@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 4RxH3x11Ybz4tty5; Thu, 28 Sep 2023 15:10:53 +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 4RxH3w4GxFz3Yls; Thu, 28 Sep 2023 15:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695913852; 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=KHU+jE8PD49z8rIvlQoz6hAWS4/vNJA8zQVIzOcdAyg=; b=BtMSQ7Q0ebfoY16i+M5pVDKTlZ7oiGUVCeS/r6upZ15U0EJoUslDqovj/QrycRVQVr58/P Ffr4LPGOp4n9qCaSgA5GuhJyj8ItKZvM+0dxw7n6h4oGAxsF81uKckHjlDZe1n4z0fp5NN yNk+zUXt61PjenhKp2vy3UznhZlFnPkXFIQ5IYR5dH3gTS1eIE5lJvOmhI72Kd8XUhgoxj 9XYawQIesgcavNs8fu8PcgWD8UerGFSKpg8hBokWNDNdSl3lu2HtzqUQV5nS7aBTPGpm0w mMQqBe3mRozXwjWcVHSGwFBtFURp4SUyaY3Z68YhLzE5uDjX0aoIbTfEuDM/vQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695913852; a=rsa-sha256; cv=none; b=oFBZgo89fL4K18+tLMChErlaTa19o9jnSFUxvmwev1PPePObPi6LD3d5lgWtcozz3FJH0N n7+S/ikRfz2+CFUmcGrbrnG59NA8iChv7tw0yVb0N2G7LkC2WhuCALvF2E52i2Y9vSy/17 z1aAsAE6FjEpeTIGz1lWAYx4WTpd+vG6ldP/hUb1VEOg/EIoo0jS0AL0luchGLlsDAYkWF cid0/Pi8dIgi+nqE06z3hV0dYuoXlEi9/j8JNPOZ6yYdOmGw9v+Cvy4oyzbahZZ4e/OREu cbhV3XfzTv+AWa+hDhGV5TFRyapr0M1VHhr3U3VfGj15Iln/exBKt8mNvWwIUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695913852; 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=KHU+jE8PD49z8rIvlQoz6hAWS4/vNJA8zQVIzOcdAyg=; b=Be8ZoEJ1Ff02OV8AbbxO2rX8RV9+g+1sMPc5oxN6mOkvl+51iaYvYwDzi2toV9fTw6jqRM iYgssKe2sz6R+30MmpUcdYW64e18wfxypir0x5IphzRBi6qptdDXFUMqJ8/TVtoimR4Qoi aPpYPkTZty12vvfBGJGAETvHIcxZ4Mr4F1Y+QrIbxLdoKFCAGE0rMalzuQ38vsqGF34Jko 54uLjCVsp/R+93v/jmOlcqddoqXGlPSI66ndy4Tde6NkbWCORp2LAohFsi8DttFLHZ2/zc gOZyvynMI1RnC9Y3/xaXLt6Cg7PbyXs+KCx5lNHxMnY7zlIm1MCjulcVrdK2NA== 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 4RxH3w3KXxzBk1; Thu, 28 Sep 2023 15:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38SFAqkM047889; Thu, 28 Sep 2023 15:10:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38SFAqTQ047886; Thu, 28 Sep 2023 15:10:52 GMT (envelope-from git) Date: Thu, 28 Sep 2023 15:10:52 GMT Message-Id: <202309281510.38SFAqTQ047886@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 5d9f38405a10 - main - realgroupmember(9): Link to groupmember(9), document the function List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5d9f38405a10fdcd9fc108c940dcf2642e9f1833 Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=5d9f38405a10fdcd9fc108c940dcf2642e9f1833 commit 5d9f38405a10fdcd9fc108c940dcf2642e9f1833 Author: Olivier Certner AuthorDate: 2023-08-17 23:54:46 +0000 Commit: Mitchell Horne CommitDate: 2023-09-28 15:05:46 +0000 realgroupmember(9): Link to groupmember(9), document the function Reviewed by: bcr (older version), mhorne MFC after: 2 weeks Sponsored by: Kumacom SAS Differential Revision: https://reviews.freebsd.org/D40643 --- share/man/man9/Makefile | 1 + share/man/man9/groupmember.9 | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index f07a886277e0..1e38eaf8adae 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1157,6 +1157,7 @@ MLINKS+=g_provider.9 g_destroy_provider.9 \ g_provider.9 g_error_provider.9 \ g_provider.9 g_new_providerf.9 MLINKS+=gone_in.9 gone_in_dev.9 +MLINKS+=groupmember.9 realgroupmember.9 MLINKS+=hash.9 hash32.9 \ hash.9 hash32_buf.9 \ hash.9 hash32_str.9 \ diff --git a/share/man/man9/groupmember.9 b/share/man/man9/groupmember.9 index 3a516622efce..ae7ccd477955 100644 --- a/share/man/man9/groupmember.9 +++ b/share/man/man9/groupmember.9 @@ -36,6 +36,8 @@ .In sys/ucred.h .Ft int .Fn groupmember "gid_t gid" "struct ucred *cred" +.Ft int +.Fn realgroupmember "gid_t gid" "struct ucred *cred" .Sh DESCRIPTION The .Fn groupmember @@ -49,6 +51,11 @@ Considered groups in .Fa cred are the effective and supplementary groups. The real group is not taken into account. +.Pp +Function +.Fn realgroupmember +works the same except that it considers instead the real and supplementary +groups, and not the effective one. .Sh RETURN VALUES If the .Fa gid