From nobody Sun Oct 26 15:14:20 2025 X-Original-To: dev-commits-src-main@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 4cvgCd1BPNz6DNXF; Sun, 26 Oct 2025 15:14:21 +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 4cvgCd0fNdz3ZRT; Sun, 26 Oct 2025 15:14:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761491661; 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=+niUn0IQt0xAJH280wMa3850hUGJ3BU+VLn0j64+jGs=; b=aikDHCHp9RA1tkEWQK5V25dA1SOxM63xfhpx1+z/QWVFME4UBpbwd6c/xX1jZdFD5DpQhH cgKiEzlS42l6iD5mmOcqqNOPgjcDKcwtbLcn2cYKojjxYspaJHOC9qDNDIVLO2Sj8LN2vb b2IYbqaqgJnwIM3AGCDFQTz+EpfPzPXsN3s8Al/XczGqcJABuXmmk0V9NdrgPKC3BAoapD G8xuaz7Yzzoo91SAefBpdmhxMcSRo2y9X7eTgd0IWI9TJy5l/+rRi+QkHpYC+flZ2GJHj5 1mo/ZzQKXtNsSk90BgpF5bPSSdvUwFKKgWFj44J26JUO8qcEF4kIj5wYgQ7TkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761491661; 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=+niUn0IQt0xAJH280wMa3850hUGJ3BU+VLn0j64+jGs=; b=u8yDk9V7w/DaeZr7z+SOgJ1h3wAFiTEaukwpbCidj/LmsyHKffbtmtaNUnt78pqaABU41h wuKn6Ug8l0aORLga7DcOn76Vq7RyLN3PHr91CF5U7H5LspMRCJ1qXBGG/vJqPHpXxhH9v1 yMsrazyxMgXYykVxeHjp9O4TRF62mm6RcpPxLSLg81CBS6cqjTEOtOG1gS/bzvqMuCtnlO ehpOUh5JZ6PDqwW1z4P+XNjQM0dpxWG0j9+GbYLIKzQPvJOJnRji8HxPexVlkWLn1Vi8Ck MwNZXoPFobwNNe2HRgJn+W1D1HoDhbAEdFO6zr8M5BPOQJtE5E49wtrH3CpyUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761491661; a=rsa-sha256; cv=none; b=JuYRy73Zlh2BnKG9zm38NPzTvwQMmCqJnxnR+MImXtbf4hEXnnukEH7K1NiafQHNdmVkxY 2PgQuaZ6yTXYzZ/qZzs/IcYMjJB5yyk6C2mwDa/NAeVFPlYaRWQpxEfchNsbYCWfheYoJO zmiSn03nsAcAsT9uh/rQKPqOA/jmMV2f59pHPr0NmbCmbSIm1ntmXaNm4wxxBKvp368jSX T5lP8B4f8w03Jr1F85sZWtSvK+6qg9ps6dtpzoZS+LExcKtxbpG/ffw6jVIup9KCGZeDd3 6dUXW5ZpiWU2ZnrEt9Q5pd1DcCF128TL1pZw6xiJk7JCsQ46Q6rV2hFfvwuXhw== 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 4cvgCd02KyzfCW; Sun, 26 Oct 2025 15:14:21 +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 59QFEKcs014636; Sun, 26 Oct 2025 15:14:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59QFEKq1014633; Sun, 26 Oct 2025 15:14:20 GMT (envelope-from git) Date: Sun, 26 Oct 2025 15:14:20 GMT Message-Id: <202510261514.59QFEKq1014633@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 081218b7a200 - main - libc: fix description issues in mac_text(3)/mac_free(3) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 081218b7a2006e5b6783e51f66fd751871ac1272 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=081218b7a2006e5b6783e51f66fd751871ac1272 commit 081218b7a2006e5b6783e51f66fd751871ac1272 Author: Kyle Evans AuthorDate: 2025-10-26 15:10:34 +0000 Commit: Kyle Evans CommitDate: 2025-10-26 15:13:21 +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 MFC after: 3 days --- 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