From nobody Tue Jan 20 04:09:38 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 4dwDNy5h2Hz6NwHV for ; Tue, 20 Jan 2026 04:09:38 +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 4dwDNy2zQ6z3W2T for ; Tue, 20 Jan 2026 04:09:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768882178; 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=9LVWRKqtOacyLb/Z8inUJyEqnf6QTavFxIQ6bi2Ra7U=; b=bGTm5tWJBcdZ5kw2Whkq3zT53wNjMuTagURXAZ8bh5CMi184akHmViTIb5OGasfl/PzniP TmKxYbm53IqNiXaJ5XZrJVs7cjuyTs4VVso/Phd2VRU7hj0LoArMkOoPYmbQT/uMbolHw0 KKpbbTB5EUlp7FmzhkrJbPw+d0BQbn2rmdCyi/U0iuXcP7bAhVtLrBM5HM231v249q1W1W fcIDJeyBE3Bj5TujL9vi5UK4xOIob2nZsvemfAvT6x/kfNPETvYd89gpvv6CND5r2ydB7B oHFJFji/N/hTHCNJxRGyRKsVVQoneyUq3pKwqj57uP/LVnKAXIvZvXQxlh+Ayg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768882178; 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=9LVWRKqtOacyLb/Z8inUJyEqnf6QTavFxIQ6bi2Ra7U=; b=tuE39adx5zRDysN/PMOW9579CvcbTCswVLTC3nSLfBvVe4hb83TsjjXpMPlIKEeBuwg6Lm O+GFbhSlpoSbPlfaWF4bOaZQROlM1IFWQw1gkza8DTBgVsbyZIY7rAcgZVOI0lvMP56duI iIB6nfgq4kyG1YspXKfHhAvKb6IBAiWv0HhshADkN64/7WqUaAoeG0sY3CsZ+jGl+/fAuh vmd7ym2XelbEv5ZM3x7FJ2N12mICxbzYE2iVx3VVKFCGc2smJvJ6+BAkc8NL17TfAOxD0I e0+IpBDbU6dg91j/Sf0RQrx52pVyhQ190f0tmy7ccPhNZRjCSQgkBrXjabeThA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768882178; a=rsa-sha256; cv=none; b=UhFDJBnXg9itDXa0bGSV5RHdk0OvI8mVn3fYDoAQFUTVLMUgMqjAkJE443DFM5YLl/wsuv wGNiXl2LXTIbsLLKMSSJv16o67MqL5DQ6KUeYdthocvO+b779ClGjjHUEcJPa/xpbQ9Z4a U5aDNU9bbP4L4ZDwLHUbQm6RNgpr5BBZzWClanvf9ddQU9YzjpwN9cvB77NIFG78a+RKEM MSMeTZyKmDSZt6RFdpio5jH8xO+weCb7OpdyN3fLabrTN25vP1TcJI/BbmN7zKM+Vd7yY4 ZAscmkXlaLkM7XLrjlpe23aB6PVSJeC1pZWa8vweHd9xEAx4iNES7W5rYcLpHQ== 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 4dwDNy28MBz127Q for ; Tue, 20 Jan 2026 04:09:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30b69 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 20 Jan 2026 04:09:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: f00ebc7eb3a6 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: f00ebc7eb3a65494749fb85b3fd8f27ea09296ae Auto-Submitted: auto-generated Date: Tue, 20 Jan 2026 04:09:38 +0000 Message-Id: <696f0002.30b69.5ebb5afb@gitrepo.freebsd.org> The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=f00ebc7eb3a65494749fb85b3fd8f27ea09296ae commit f00ebc7eb3a65494749fb85b3fd8f27ea09296ae Author: Kyle Evans AuthorDate: 2025-10-26 15:10:34 +0000 Commit: Kyle Evans CommitDate: 2026-01-20 04:05:37 +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