From nobody Mon Dec 16 14:45:11 2024 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 4YBjQv4lgDz5hW7w; Mon, 16 Dec 2024 14:45:11 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBjQv32fSz4c7m; Mon, 16 Dec 2024 14:45:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360311; 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=SV0rxFEFRHa4wYYqCsg7j9q8jCZbj93rFLGKBW8IphY=; b=jaQ1yAWnVzVLMbK+4CxNvEA3GVmesWpcWx0qk0H2is+qn2nntGIpXahOKRHq14vu5WrR1m SN2+VMd49B61ObArNJCzKHD8nYMxEsKw2BR3wtrUONjVVvLPcVaTJlFKp5R0YL0v8XX1nc na1HdBlldnrGRVqS7gEiu26mXC6ose4DSGZZQSO7W7lZXzGKJ/H+ngVGT9zAD7hxmHrON5 U10Nl4OkmzMfoGpeJnrgsis/pdiRyf0mYWfJBJ9aPZzNlHPod+pJ/99BXE1FFC98DvYj1d u/KohVs3ZBoJ6QAUVybrEcMtUjPSnS3GSGmeb1SmNqilQ+C4/X3AvSai+pUTQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360311; 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=SV0rxFEFRHa4wYYqCsg7j9q8jCZbj93rFLGKBW8IphY=; b=YSLkpvnFrrjstzBTBHdtbAhbucAp+QzRlZT2zrYyqOJFRkgK4TxIaz7Jc16k8ZfT0TaENN WwSod9mH4Nt0kGkvlUa7GoYXlvkJ058oKpEaqKA9kTRMlaTf+njh49/ObaEEA6rfHiRT8C ZfiqXyN/rSed7xqwn5AlURMotA8WirpYQWzc7QwhNkFwjI/WjB1N6ljnTn1BCGmFCmuSbv lA5gF7chAGcv6MYd8gQ8M5snV9+jJJ/XRJDQZvK8u+IVskYC4iEINosxDfuOztECCVO4Iu I5T7SB9uVoXQfcnlc5hmBjN7b8eV7DWFqyQKeIamnik6IBOZAZRhrZ5bAT9e9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734360311; a=rsa-sha256; cv=none; b=wpIqAFSJ7MAfmR5bZsEAiuaA7ts7rbalaLQBx0Ekat4YCzWChFubUUdw5Cu6CX7Tpwhagj mT8T1cqVIqu7JMtnfpIVdPaxP/4j2Ixbk7Yp2XQ4c6g5yNWG8kCOR0SeZ4R3v2hV2z6N0e X8PjAKwdoDDfDoO1swC5oZ/KxHavO271DQ0ERstWICR4TgL2KKSKJfkNKmZYPQ7Rw8xOv1 l338Xt28ifF1UMTAG6obryyTKXTKBkL1vXrvaSM6Z4Lo6RDKQRZyhdJciXHIt6IY6NF2tG Rtx1neEb+L6cR7pu4564xwZQ8DyNiJBUjuvxt8F3Da1jzOGhaUQI//JeIzHVpg== 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 4YBjQv2fd0zxH4; Mon, 16 Dec 2024 14:45:11 +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 4BGEjBdA051268; Mon, 16 Dec 2024 14:45:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGEjBwU051265; Mon, 16 Dec 2024 14:45:11 GMT (envelope-from git) Date: Mon, 16 Dec 2024 14:45:11 GMT Message-Id: <202412161445.4BGEjBwU051265@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 5041b20503db - main - 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/main X-Git-Reftype: branch X-Git-Commit: 5041b20503dbb442cc9ebd0a6e4db26905102c72 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=5041b20503dbb442cc9ebd0a6e4db26905102c72 commit 5041b20503dbb442cc9ebd0a6e4db26905102c72 Author: Olivier Certner AuthorDate: 2024-07-03 14:30:19 +0000 Commit: Olivier Certner CommitDate: 2024-12-16 14:42:27 +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 --- 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 e290f837e297..d742b5dcbc3a 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -71,6 +71,7 @@ #include #include #include +#include #include #include #include @@ -104,6 +105,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