From nobody Tue Jan 20 04:09:19 2026 X-Original-To: dev-commits-src-branches@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 4dwDNj4vlxz6Nw8x for ; Tue, 20 Jan 2026 04:09:25 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dwDNj0QQwz3Vj7 for ; Tue, 20 Jan 2026 04:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768882165; 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=BvosE4rtwzbdUR8PY9RYHQlh6KWQ4qK+01n0UiUrKHs=; b=F1r/bvriJLxrsE+J3u1lShAwBy8TKrzq1ghhyX78gm+QbwYC4dErOmFqR7DRsJ2iOdT4yu EVYOa2Fm5DYpnsXuBBO+7TpRaWAQJvR6lejXTnaBaR6vFqsUal+ZFxWQ5evEUIwaWzzN7x zR9uYRFfYQBQ0DzTJa/08pauJJTDVv09H3sOpp23+bQD/Ea3uq7GqSL+Y5zg4XP1cDyw0W b41Au7rnqUWtcOKBC9BjU++gWO2suDvexe+8WGoYPro2St1Uy/yvr3h6iz17RayjoCptof r8A4OqObdRyD2PEL0Re+8zn+izzHV/K8IHvnhvLWjruXoRdfwIijpivF2ckIqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768882165; 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=BvosE4rtwzbdUR8PY9RYHQlh6KWQ4qK+01n0UiUrKHs=; b=X/0Zxu7Yr5ixkmyL/4zExNo7wL7+TPXiGssKQkPBA+KkrwdVa3MgNPfNOwhwqqN/GdPM4+ 2Fwj+t02aDFKZiaKbMI1vetjpHRYHrpD2UPIZoXlWf/HSdrmNrZRnV928yEUG+IDSJqM6d AIZ48CYbyoqAgc7tpNgjeIykQ9xd8UDLAxWO2EsduxXJfHN6jQuzgnlioKOvGvVeKFLibS N6C540LY96tvKJp+EvfwQ4vxNz90v9RSYXv9o0mMuqebnl8hNbSZ/MKWl6ILRiKhJ+WVDF ly4mPtfVGy8IXK3PIF5LRe7HrfuHnPFlBS3G8jH8rwxahDjoO1C11LWq52SNFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768882165; a=rsa-sha256; cv=none; b=SLaTaNzdGVFAfgu/OvbAYEj2jGC5xYblrihQGDUTMAekc6pnhGGU+I2MVSBzfu2lPeQB5n PZaUQMsRkJRnE16vgx+GrnuHqtBx1UfJkDg8yNIWh1N+Jgc8z6j776x4RrDYee0MNr3O9v PmJlv/+MFXJNTXdzYSlkq2ZpbbC9FOzB/Vd8tDf6SSoqfLTESQeFrGQayz/uvcM7WMS3rZ Y/ZEeqYbWD7ieXyJ3KogtR9a9I0Ih+HqClQ15vSRpozAIOgDRLtWcHRAoYXV7abl0J7yzZ g2iciQzq0F/XEShs5UcK0y4L8p+ECHOzrmiAJ5wT9rsolhOzP98qEmKR1nniAw== 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 4dwDNh6cJxz11FJ for ; Tue, 20 Jan 2026 04:09:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3111a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 20 Jan 2026 04:09:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: b5b3bf57e9fb - stable/15 - libc: fix description issues in mac_text(3)/mac_free(3) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/15 X-Git-Reftype: branch X-Git-Commit: b5b3bf57e9fb35f8445b92e638a9fe351490825c Auto-Submitted: auto-generated Date: Tue, 20 Jan 2026 04:09:19 +0000 Message-Id: <696effef.3111a.6aba9a12@gitrepo.freebsd.org> The branch stable/15 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=b5b3bf57e9fb35f8445b92e638a9fe351490825c commit b5b3bf57e9fb35f8445b92e638a9fe351490825c Author: Kyle Evans AuthorDate: 2025-10-26 15:10:34 +0000 Commit: Kyle Evans CommitDate: 2026-01-20 04:04:08 +0000 libc: fix description issues in mac_text(3)/mac_free(3) mac_text(3) as-written would seem to indicate that a `mac_t` should be freed with free(3), but this isn't the case. One can derive from context from when the change was introduced and COMPATIBILITY that this was intended to talk about *text in `mac_to_text`, so move the comment there. PR: 179832 Co-authored-by: Priit Järv (cherry picked from commit 081218b7a2006e5b6783e51f66fd751871ac1272) --- lib/libc/posix1e/mac_free.3 | 4 ++-- lib/libc/posix1e/mac_text.3 | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/libc/posix1e/mac_free.3 b/lib/libc/posix1e/mac_free.3 index 4ed68b70f3a3..6674ca2e9094 100644 --- a/lib/libc/posix1e/mac_free.3 +++ b/lib/libc/posix1e/mac_free.3 @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 21, 2023 +.Dd October 26, 2025 .Dt MAC_FREE 3 .Os .Sh NAME @@ -85,7 +85,7 @@ is a complex structure in the implementation, .Fn mac_free is specific to -.Vt mac_3 , +.Vt mac_t , and must not be used to free the character strings returned from .Fn mac_to_text . Doing so may result in undefined behavior. diff --git a/lib/libc/posix1e/mac_text.3 b/lib/libc/posix1e/mac_text.3 index 29c1aacca485..7633f4b0da64 100644 --- a/lib/libc/posix1e/mac_text.3 +++ b/lib/libc/posix1e/mac_text.3 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 21, 2023 +.Dd October 26, 2025 .Dt MAC_TEXT 3 .Os .Sh NAME @@ -52,14 +52,16 @@ into the internal policy label format and places it in .Fa *mac , which must later be freed with -.Xr free 3 . +.Xr mac_free 3 . .Pp The .Fn mac_to_text function allocates storage for .Fa *text , which will be set to the text representation of -.Fa label . +.Fa label +and must later be freed with +.Xr free 3 . .Pp Refer to .Xr maclabel 7