From nobody Wed Sep 17 12:19:22 2025 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 4cRd9l4s65z67Hp5; Wed, 17 Sep 2025 12:19:23 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cRd9l0kBgz3WDZ; Wed, 17 Sep 2025 12:19:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758111563; 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=EkiVm8zqhAFk2iBKhB8cwDkE+NoSMfDYs7Q0h+iio3M=; b=BMds/5PPWs9rDjU9uih/MsnewoU+EFmk4aEOuN+KmtWX1gKzdnAK/cqu7EH1V9Wdq+G2cg ekqDtNkmATucF7R0c5TVdgRR4OlB/+xUGDDt8WrXCn9YHaDn60V5HdWSW8pY8aNsIWg7ex vET724d2knucceAgkJ/kSZl2cmPc2ABQn8PLs9UEUujdMIvc0yo6kYcNpF+qHlhto1T+tq bI1hXGmeK2G67D1ZLKHYgvdPo8n6Nk05C+q2FfxToHdw5nLrvhj+P/HCXO1m8SMphTvNuH F5eWDERcY8w875fl4poJSaW5gGCoaxAHZk7QWkjjWSoHGAGTAcg1Ea1R4i+wcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758111563; 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=EkiVm8zqhAFk2iBKhB8cwDkE+NoSMfDYs7Q0h+iio3M=; b=gSkRXzYDge4YCchBs0d96aaHSwwrCVrcAStessT/iOoYDA4b6bDWDNOom4C673VLi4zsnO /2iKrtKrSNLszPrDxVmH09H72wHiGf/G3nprFAvPTWoy4f1mOUcj9RUzof9lAfmFHEHSBQ GAhzY6P5dxhh8jRxjFfQkg4HU/MikoKA2UoLZNHTieFItR+8FoSvIJA737fwNqtjl6vliy xEEeFenhdOGZxNsGPAupOhX7D2nNbn2YP9Qsxj+wM6J1394OghfuPCm73wqoMglXlsz21o xoI3cmTIKr4OAmBK5YC9OPSsfw83E0GzZBpv7yccZg17L+269tBpprZsf0aHvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758111563; a=rsa-sha256; cv=none; b=FH6L2j1X7OXdwmpcoz1xi08+B/IrTFgPIVBKqn8o8RjQz1MB40W2mjWSE1pg3xcMfi55Yp rehzPEMmtXdqekHkSgV9qHauwaZ/HnLDnzzRu8+f5KPMz2r3mp4pOlrTLmGN/imUrab9eW S2EGJ6P9NVOV0MIwIB2IYjJ9JMV9Qei39CYGdjs5UZycHhwZzxUcJaJ3X4r/6HWmPBbP6d XpPouWzHf5JPIxMvGNUrMSVyu1Qz3FR29h1ElD8JW2AEsv4rkQRfzNgAlPn8HJGA/+l6lT o/bRN2X5wVBuEIQ0Bb1MrRpl3s5kMrnxj+HfFvcmPfwsJImesJwhNKR6lNOofQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cRd9l09LHz9Lt; Wed, 17 Sep 2025 12:19:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58HCJM2e086296; Wed, 17 Sep 2025 12:19:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58HCJMEM086293; Wed, 17 Sep 2025 12:19:22 GMT (envelope-from git) Date: Wed, 17 Sep 2025 12:19:22 GMT Message-Id: <202509171219.58HCJMEM086293@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 6b26d0a335b6 - main - ucred.9: crsetgroups_and_egid(): Clarify differences with crsetgroups() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6b26d0a335b6222744e2778753086e16389b6029 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=6b26d0a335b6222744e2778753086e16389b6029 commit 6b26d0a335b6222744e2778753086e16389b6029 Author: Olivier Certner AuthorDate: 2025-08-29 15:17:36 +0000 Commit: Olivier Certner CommitDate: 2025-09-17 12:16:08 +0000 ucred.9: crsetgroups_and_egid(): Clarify differences with crsetgroups() MFC after: 5 days MFC to: stable/15 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52288 --- share/man/man9/ucred.9 | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/share/man/man9/ucred.9 b/share/man/man9/ucred.9 index 38759bddb5b0..453df386ff18 100644 --- a/share/man/man9/ucred.9 +++ b/share/man/man9/ucred.9 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH .\" DAMAGE. .\" -.Dd July 29, 2025 +.Dd August 29, 2025 .Dt UCRED 9 .Os .Sh NAME @@ -113,28 +113,26 @@ The actual copying is performed by .Pp The .Fn crsetgroups -and -.Fn crsetgroups_and_egid -functions set the +function sets the .Va cr_groups and .Va cr_ngroups -variables and allocates space as needed. -They also truncate the group list to the current maximum number of -groups. -No other mechanism should be used to modify the -.Va cr_groups -array. -Note that +variables representing the supplementary groups, allocating space as needed. +It also truncates the group list to the current maximum number of groups. +The .Fn crsetgroups_and_egid -will interpret the first element of +function is similar, but interprets separately the first group of .Va groups -as the new effective GID and the rest of the array as the supplementary groups, -and +as the effective GID to set, only setting the subsequent groups as supplementary +ones. +It will use .Va default_egid -will be used as the new effective GID only if +as the new effective GID if .Va groups is empty. +No other mechanism should be used to modify the +.Va cr_groups +array. .Pp The .Fn cru2x