From nobody Fri Nov 28 21:29:15 2025 X-Original-To: dev-commits-doc-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 4dJ5yz1yf1z6JKmC for ; Fri, 28 Nov 2025 21:29:15 +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 4dJ5yz194cz3gkf for ; Fri, 28 Nov 2025 21:29:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764365355; 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=JUhemqc4uAc/8gcT+rVMORj7sky51cH6AnPMOiO19AE=; b=J/7zrU4eMk4VSylXsxoyksLwNdx3aUI6zB+bXUxPBJn/0xjmaEPGILjUyGSVcGFjzoAS9g IHi9DL/m8E0Tt1vBhulw3sGTBm9hcL/QSQjHei1sVwVYpe9XGCllh57uH50b7g6DEX1Pyg 3JO7sG5hsjwwauC9S2WB4RjRg3w/rjX9mR5OIHnjWfnyUtJJ5QX+lJ4aakH6sXdDFWRpQW kToF3/ZPEQMyQGGUS+n3CX6I+iUBmcfwkpNYt72Z98N3CnVDvgOpXTA7J4FQ/KesAXvMHg nsUedjw+wCrkq4fo3+5XTcczjhMuOUZF/gw9zfUShSzcsv2uFaSVc6iG0wFHsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764365355; 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=JUhemqc4uAc/8gcT+rVMORj7sky51cH6AnPMOiO19AE=; b=vIv0mC0FEglUX47Zim87mmN/UbGJVjIAajJIMiadlpzzx/p5aeVI/d4ba3iFgLcr9FbWxX LybTx8ul4exxlUQWq1HJQ3pgYrLu+Ai/K5Kn/84CAp89kfnjV/pZn2G+lqve9++V5xlvNP Klf9274NlkJX/FjKavbnVXJw3q9aBa5oKBNudhI9MV5iV0vlsmCDoS5FV3KwohzwWhEkbn 76bjvJWMdwIo7RxtVYyPVtoDYlGistus6wKbXBZol/IJRKoRUWL77HaiHDP+aZ56ccMQ07 LXfomCOZqb7PZrwr+9VBoLOzId7nqFBU7f0sfg3nlzffjdmKlq92JH5Y9SNPYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764365355; a=rsa-sha256; cv=none; b=utqTsCruLu8V/iniXGylBAvk24jTLXfgShCdQDQTJYejPBC5U7Bd72La26/i8igKHupf6N GDUuK1xYM8ZQmKuplcpbD2C4SmIsN4A7hW9Mf4wMXe/MjPkOHo+UeYWQa+rvsPjuGJM3SX W16coHLjcTwz45KeiaNehOUeVCWmftubMW7zi/oowoEwLtxQw6ynAOTlUWjQ/H4Ie0kKsN QO3ybvkiNA1UgVl43+PGrZjjJ63XbWsuYzybuzQC9mMmOD5aeryIv0Xh2O5L09r/fxFK/M exlqqlhHVMN/VrXHZAz4PxfnjqsqT3H9dhY1J/qyVG8Xv3fc9qbWoJ6uMFvt8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dJ5yz0hhmz42f for ; Fri, 28 Nov 2025 21:29:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 32dfb by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 28 Nov 2025 21:29:15 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Olivier Certner Subject: git: cd1108f7c6 - main - releases/15.0R/relnotes: setgroups(2), getgroups(2), initgroups(3) changes List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-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: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cd1108f7c63ac5dfb87b0a4893f86a2b1be98baa Auto-Submitted: auto-generated Date: Fri, 28 Nov 2025 21:29:15 +0000 Message-Id: <692a142b.32dfb.6c26938f@gitrepo.freebsd.org> The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/doc/commit/?id=cd1108f7c63ac5dfb87b0a4893f86a2b1be98baa commit cd1108f7c63ac5dfb87b0a4893f86a2b1be98baa Author: Olivier Certner AuthorDate: 2025-11-28 18:15:05 +0000 Commit: Olivier Certner CommitDate: 2025-11-28 21:28:36 +0000 releases/15.0R/relnotes: setgroups(2), getgroups(2), initgroups(3) changes Inline the points that must be audited. For the rest, redirect people to the proper manual pages, where SECURITY CONSIDERATIONS sections were added. Sponsored by: The FreeBSD Foundation --- website/content/en/releases/15.0R/relnotes.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/content/en/releases/15.0R/relnotes.adoc b/website/content/en/releases/15.0R/relnotes.adoc index beb6fac49d..ec45bfa214 100644 --- a/website/content/en/releases/15.0R/relnotes.adoc +++ b/website/content/en/releases/15.0R/relnotes.adoc @@ -587,6 +587,21 @@ gitref:e77813f7e4a3[repository=src] The accuracy of man:asinf[3] and man:acosf[3] has improved. gitref:33c82f11c267[repository=src] +The man:setgroups[2] and man:getgroups[2] system calls and the man:initgroups[3] library function have been changed to avoid setting or reporting the effective group ID, now only concerning themselves with the supplementary groups. +The main purpose of this change is to avoid security issues going forward by becoming compatible with Linux/glibc, OpenBSD, NetBSD and illumos-based systems. +Consequently, almost all portable applications should already be compliant with this new behavior and will continue to work correctly or even get fixed in the process (see, e.g., gitref:239e8c98636a[repository=src] for an example affecting OpenSSH). +However, out of caution, porters, system administrators and users are advised to audit their applications using man:setgroups[2], man:getgroups[2] and man:initgroups[3], watching out for the following points. +Applications must be using man:setgid[2] or man:setegid[2] in addition to man:setgroups[2] or man:initgroups[3] to set the effective group ID. +They must not treat the first element of the array returned by man:getgroups[2] specially, but instead as any other supplementary group. +For more information, please consult the SECURITY CONSIDERATIONS sections that have been added to the man:setgroups[2], man:getgroups[2] and man:initgroups[3] manual pages. +Compatibility system calls and library functions have been provided so that binaries and libraries compiled on FreeBSD 14 systems or earlier will continue to work exactly as before. +gitref:9da2fe96ff2e[repository=src], +gitref:8878569103a3[repository=src], +gitref:7132fb5edbc9[repository=src], +gitref:2932e6f59bff[repository=src], +gitref:8878569103a3[repository=src] +(Sponsored by The FreeBSD Foundation.) + [[userland-deprecated-programs]] === Deprecated Applications