From nobody Thu Jan 16 18:08:09 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 4YYrSp16mjz5kkXJ; Thu, 16 Jan 2025 18:08:10 +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 4YYrSn5vsJz3RRJ; Thu, 16 Jan 2025 18:08:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050889; 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=zspZVsmQa41VUK4wf/BYYW5umtJgQzisuEeQD1WdVpU=; b=ipWmmANUzn3fjgp22SqjGJmUg0EQd9AI0ltw/Avwq/Xjqbve3iY23cHaZ9y0qYQyIMpVAc Xoi0YG6eB2NyV//EDtxRxH2W9MKEBeeBV71mDB+72sszOeDd9CNj11OUN8FyVkyG6LUfHN XEYmnpjY/d28h0b6uiv3LWRfPt2neyZMDyfJqWE69Drfjdso4R+lRmf52LUlIiFO0ZLdwD AlUrlCOZ//VoUs+s1hF6Am6Ojp27lhaPDoK3kzEXbuMQpqgQ+AX2AKPVz+W4b6GFOIHBfW ERRLBhFu0yifCcycXge+Dmd+ZOcfXDojyqQOWuN/ePlX+AtNggm6umqhPAddKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050889; 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=zspZVsmQa41VUK4wf/BYYW5umtJgQzisuEeQD1WdVpU=; b=cNP3VeeRz8HLf+Yo2wNty+5sBGi2GfWle2T1CeIb4QF0/BbM5rLr0++kDuwGxYiMueqjby GiPcrOoz9cM9H9dVFbidNH9bjrAMzRgUCxnx138JlLUOa3xz7XyMX5bCgKYhXg2Hv9e9p4 13N3rC/Px+kC69p4iZNrl2zwhbK9L5Z1KNXlgDrUT0eOO/UVbuE6JCkT7R8zQyPwUFAVtC /hbdIDSe36njPyCivDpO7JZ5erp7r1p1jhAu6xzuthTvwbB8lCaMFbqDKqKqd+MNyoxq/W 3cpXI1/teb4bTTrx6YgTIzC4Vt3ujPAF65XvG8Vs7hvTvtv8LVWSY/HKkePMSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737050889; a=rsa-sha256; cv=none; b=CJgdWqmUwRG0KyNa3yfLRXzhPP6ykBIu8iEAxtiyKBQUEHBKRWXeym6t5HEvDKuS/2cCFU Luy/vZpn+QEmM2JPNx7ALfNQMqOTx6FsJyTWxyljbO7uPMpBRf10+xqJxZBLrIsdsitWya EWXpsV6OvLbGRPq8DsGS6Brk1hG0fFAAhpH7RCWqQo2WZU7K2amwIPjkt15CuqNxmezG1T twC/GL7+pJwoUcO05yNqDPVbpcPmVw68x0/zgDUM53ZE64TftgFZirY1OZ67YEDuRBlAyy Fqti9FvcEJXStPF2wT1IzRwDlwI+L+M1nPSh4BmGYRmWtbf89h8tEJ4yYDYKDw== 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 4YYrSn4Z3XzjVp; Thu, 16 Jan 2025 18:08:09 +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 50GI89nu091508; Thu, 16 Jan 2025 18:08:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50GI89mb091505; Thu, 16 Jan 2025 18:08:09 GMT (envelope-from git) Date: Thu, 16 Jan 2025 18:08:09 GMT Message-Id: <202501161808.50GI89mb091505@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: 66fb52a27279 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 66fb52a27279235d0c42b605355afe3227feacee Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=66fb52a27279235d0c42b605355afe3227feacee commit 66fb52a27279235d0c42b605355afe3227feacee Author: Olivier Certner AuthorDate: 2024-07-03 14:30:19 +0000 Commit: Olivier Certner CommitDate: 2025-01-16 18:06:54 +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 7fdb7b4ed2d2..b5eb1620300a 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