From nobody Mon Dec 16 14:45:13 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 4YBjQy3L4Kz5hWMr; Mon, 16 Dec 2024 14:45:14 +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 4YBjQx6M3Cz4cPp; Mon, 16 Dec 2024 14:45:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360313; 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=0ztWvEuS4KoFTT3uA+iU7YUy3YJkRdkQWhwhkrOttP8=; b=R7Mcy1qSwOD5ks1jc2QmuAnIIQ4D9jdnLHpImlsN+VwK2XpWVkVTV2apM4zu0W4419iDZI 4K1kaYYFXUKqv5+EXKcbFYkT33ivgF5eoBdPpvZfs27L5KSfLRC1jCDPReBROvQirWhAVe sA0kCcQdcUzsPzwy/X0YCQ3TrFL5gskcESuzKxZGhmDhK5Tz3nGQaruFW4SwEpZXlOAKKY nWcoXLxYws3hBujSK8lw23GwZOidSxaBtDujHodATn0wyftdNV7DpEjRiicA3ew5ai6L1k Z74u/BZquAWf9Tgul5mharnh8dCkW9eYUJT46VZj8HLtW3IG7EZgAlFVeE66vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734360313; 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=0ztWvEuS4KoFTT3uA+iU7YUy3YJkRdkQWhwhkrOttP8=; b=R2/O/yv/pLUYb3s7whV/igHXqp3/AnmefKDroLXCjL1CtstIse3yYJTv5cfUIYYKqprCUB luB3/PFsoTVStdrQjB6wMbex9gOvk2He+xOh9LGETZYktH0wNvcN9PSD3DuucGaX2k0IlI QFSXJm+Bk9jJTA0Kh7JuMrYGyYOqIWMBKk5GIdk5jAnr2LUJV/k51tVFEc88b6cnUAD/o1 gnKbntwi8DwSHKiknoM4JW64+s9bWCqGci+bePzYjN0iFdOjgZvNKOk+EoWLB8Eqb2fF4k 8d2zv9+GFKCmblY1wunANW8JJCH2nfGjgJHLktIkIu+IS11UBGN1y0tzL517FA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734360313; a=rsa-sha256; cv=none; b=iG+dIwTon6kB/L+Envv+FYq5vsS/CYaJCIyKImJ6edcZNNCgYXtsFIawP0sMU31jnqm3TV 8XM0/qT5Vz6PS1HvMhhXWAYBUNCj+PRo391MvsH02uhQH39cOO/vnhX59wN6ZqD+QUZvX0 XvFXfOwbbJ7T6RYfw6EKo0Jx1rQ4Ieq+Uexzvs3rx7XcFNBatL3lAdFZlSakYFaBMc7LVW vLjMhqwhE0yYKvJRwAuT0cr1NFxeKFTJHBmHrBP2HWc4F1qbsxZ8QKvu89wYCURuo6dJOb KQc+UuaSxpUzErtshWwEZOt0Mo1zI6PqbZNpbvLcj01SrHiDqwgN94OPX15BgQ== 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 4YBjQx4dWHzxWm; Mon, 16 Dec 2024 14:45:13 +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 4BGEjD71051390; Mon, 16 Dec 2024 14:45:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGEjDnu051387; Mon, 16 Dec 2024 14:45:13 GMT (envelope-from git) Date: Mon, 16 Dec 2024 14:45:13 GMT Message-Id: <202412161445.4BGEjDnu051387@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: 9f8020e65ba8 - main - jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE() 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: 9f8020e65ba8f2398bf79505037b75670340e5fa Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=9f8020e65ba8f2398bf79505037b75670340e5fa commit 9f8020e65ba8f2398bf79505037b75670340e5fa Author: Olivier Certner AuthorDate: 2024-07-04 09:05:44 +0000 Commit: Olivier Certner CommitDate: 2024-12-16 14:42:27 +0000 jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE() Same as SYSCTL_JAIL_PARAM_SYS_NODE() but allowing another level of hierarchy. To be used with MAC policies, so that they can have their own node under "security.jail.param.mac". Reviewed by: jamie Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46901 --- sys/sys/jail.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/jail.h b/sys/sys/jail.h index a5a99e03a27d..94533ef1e8b5 100644 --- a/sys/sys/jail.h +++ b/sys/sys/jail.h @@ -399,6 +399,10 @@ SYSCTL_DECL(_security_jail_param); SYSCTL_JAIL_PARAM_NODE(module, descr); \ SYSCTL_JAIL_PARAM(_##module, , CTLTYPE_INT | (access), "E,jailsys", \ descr) +#define SYSCTL_JAIL_PARAM_SYS_SUBNODE(parent, module, access, descr) \ + SYSCTL_JAIL_PARAM_SUBNODE(parent, module, descr); \ + SYSCTL_JAIL_PARAM(_##parent##_##module, , CTLTYPE_INT | (access), \ + "E,jailsys", descr) /* * Kernel support functions for jail().