From nobody Fri Jan 17 12:27:02 2025 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 4YZJrk6TDrz5kvlX; Fri, 17 Jan 2025 12:27:02 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YZJrk3Hq5z3TV4; Fri, 17 Jan 2025 12:27:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737116822; 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=UvwDaSoh4+H8/bozFRNuwbDbN1+eW7Cn0Ou6EweYBks=; b=L3CAygQhO5nHOBdfOAi4WuTTalVL/MZryo+fipLqNhdkiTKpjtrpEsbYxPyAOJkOOIj4a7 YNFkYBXswvjRL6FCDYOyIpPQM16o4qxyE0Dhodv1Z4S2U8aWb3AEhVyWTeoCh9FREA7gKR QIBGfzgkT6sERBl7f8eg9SiDVaIEVzhKsZAjIqFUTum+WT3BNEeti6/oplvh7tu3fz+IAX xVCeY9lQfPW8g+bp53JhVTT/4stmkeXtN0Ixrlkl+Vg8eHoHgK+im3LNWfHtWV6u7NfAQK Mlvp/Gg3lpSnto9F+1EBuA1Ltne5ChRrZAz6hFPESdmtilV3BFQFGl5YdSrYoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737116822; 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=UvwDaSoh4+H8/bozFRNuwbDbN1+eW7Cn0Ou6EweYBks=; b=IFOChnd57l4dfODZ954qzjWG3RpCY4lLZPIGk8a3e3hVm5vjh3P+aejN+uB08LXDaJev4V NMhtPs9dfIMBIsWhQmpySiu6Ql0xX2nabiH3wztxTYKyhpmZLJ8VlG0m69ziBjnfzLvfAT neDIn59bhKcjjZtZj2Y7K0UxUKTfDPra9jPrLm5rL8B7zwo+TqE0CmsCt/BgddT/Xidvu6 GwtwBAvDr/FNhaLIe+mi9vCv8CvQCGsPRsGlziHAah1buU33yhatc42oSTFPVhxcUtDgbp iicmBdYVq45ZGEw7yEuW132muevPZyxFcCsCxdGitRN13JfR1vbeHCmOFToZQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737116822; a=rsa-sha256; cv=none; b=vUCxT6T4gAxzYOdN7itci4a+HOgerRNvHgDyO6eoC3VFpnYu2Ly5ovoLItPw7gwTwcHvLH S3nG/VMgoYpJmFaW79vldltNEIoWTxUSfiiguDHE2WlAHBG9OoysqlrdVFLfe9wLhfT1TS gKW2bzEgqI575V8l4KUIQrQXIsrROUiDDYPkF9Oty10a8CmESdJkOEaFm8jPu8sG5Db2yo hNB6g7w02n6E/0dpHtJjtsgFhrz+sh0evUMzhtb18zE1XUiVYOsSMPQAK8Viu6gA+5WEic /OLLtzCrmIY1VeDHyvRwm8n58RCdCeYaSnOLrehOJ5TLKNOaZGFhA/rCYF4cAA== 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 4YZJrk2vYsz3BY; Fri, 17 Jan 2025 12:27:02 +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 50HCR2dM052006; Fri, 17 Jan 2025 12:27:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50HCR2O6052003; Fri, 17 Jan 2025 12:27:02 GMT (envelope-from git) Date: Fri, 17 Jan 2025 12:27:02 GMT Message-Id: <202501171227.50HCR2O6052003@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: ae2383c0dd16 - stable/13 - MAC: Define a common 'mac' node for MAC's jail parameters 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ae2383c0dd16e06991a0462758107e0489ec53a7 Auto-Submitted: auto-generated The branch stable/13 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=ae2383c0dd16e06991a0462758107e0489ec53a7 commit ae2383c0dd16e06991a0462758107e0489ec53a7 Author: Olivier Certner AuthorDate: 2024-07-03 14:30:19 +0000 Commit: Olivier Certner CommitDate: 2025-01-17 12:24:49 +0000 MAC: Define a common 'mac' node for MAC's jail parameters To be used by MAC/do. Reviewed by: jamie Approved by: markj (mentor) MFC after: 5 days Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46899 (cherry picked from commit 5041b20503dbb442cc9ebd0a6e4db26905102c72) --- sys/security/mac/mac_framework.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 342389606430..ae18dead6840 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -72,6 +72,7 @@ #include #include #include +#include #include #include #include @@ -105,6 +106,11 @@ SDT_PROBE_DEFINE1(mac, , policy, unregister, SYSCTL_NODE(_security, OID_AUTO, mac, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, "TrustedBSD MAC policy controls"); +/* + * Root sysctl node for MAC modules' jail parameters. + */ +SYSCTL_JAIL_PARAM_NODE(mac, "Jail parameters for MAC policy controls"); + /* * Declare that the kernel provides a specific version of MAC support. * This permits modules to refuse to be loaded if the necessary support isn't