From nobody Tue Jan 20 04:09:19 2026 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 4dwDNc33YPz6Nw8k for ; Tue, 20 Jan 2026 04:09:20 +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 4dwDNc0bJFz3VRX for ; Tue, 20 Jan 2026 04:09:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768882160; 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=AXHNngJ98Zs6OoytbgIIEEaTqkskxrvG2AxdwdyI7BoaaN7g7aPuENcUjma5NuVcQsXrTE wjE5LZU5sw50aYKJthMZJXwlVlHtdOsCpkl0Q81R0A5QqBahFv7JEOIYEhEqiaJU4IjqwM C8kBMom8udEwlP3Zs2mlU/+76iGWuGJhSUltRIreyTI9GhAQiJ8XNGDBP3GLX4GmF5xIx9 Rm/HAOGmrB+QFZgaXNquNtXCbxuZtOYMnd/K2qPS4e/58SxR1aX4UX9InvgWwZ/8xLn+t2 YbBlQtJMIUUZJhzmF9lOrClmwX9jJbBWoveYh4m5TB6axqryBQ8/2YhxxoVuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768882160; 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=YI8V+bQ3FANnolyaX5RhJjczPt8kpFpxLOOlenEq03B4LhU8zTxZy8tun/FOZhEbfx3Dl6 JKoFsok7cVFZXIY4ulDJUwnQ5k1LJQFcx9mb3mcTyx4j2D1tPRUtDwKgA5SbiT2EVbrXrG YRURjrP7GSDR+R3GBQv36phmCwN2bHob+lUAscltrqQyTdVWosSoaI5u8oWDMz9loGXsLA 0yt1jxh/jlt+4bGdbprriR2BD3GOM0nSiWK18/HOJBtQgIKmJhQdBUn6d/FTBVXDGU/vaF eGbr6nahrDc29xpW8LEQcEJpc2Dd8Nez4VjTVfQsUfWNmWPfZPqLnlD59Ks1Zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768882160; a=rsa-sha256; cv=none; b=hQaegq4TdbD75SnX35NAMRVb3nxDbkaatZH1OAkqaWRmyTy6HPudBZUpWhqngnPj34vV5C R1pQxR4YziXESzFBWJPXtdqZp5mQW0CDu6QVRh6FLEmuZsrxFtB/MPZvvrrF0wl7F2i+wh xH6wKCErqn5KhcfQFcVqF9fPLTTpgdGjECAlUm4VUMQVtXl6vpjWBRHGNz4abtiqYL4FKL BKy7e62azfu8GIAuVuJllu0nlRuntXnOwPd8eG9yKNJFVgns+FtI4rMg7vhVivwAukGLz2 MRgx8E/FxhCoXuZVnVG69bI//OLG5uLlONCx+05x+jdDiIHbXmcC+S+WeC6dUw== 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 4dwDNb6nzjz11d0 for ; Tue, 20 Jan 2026 04:09:19 +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: 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: 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