git: f7bda491ef05 - main - jail.h: New SYSCTL_JAIL_PARAM_DECL()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Dec 2024 14:45:14 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=f7bda491ef05717fb4fe6c89083485599db951b8
commit f7bda491ef05717fb4fe6c89083485599db951b8
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-07-04 09:50:04 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2024-12-16 14:42:28 +0000
jail.h: New SYSCTL_JAIL_PARAM_DECL()
Like SYSCTL_DECL(), additionally prepending the well-known jail
parameters' sysctl prefix.
Reviewed by: jamie
Approved by: markj (mentor)
MFC after: 5 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46902
---
sys/sys/jail.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/sys/jail.h b/sys/sys/jail.h
index 94533ef1e8b5..72799dbf172f 100644
--- a/sys/sys/jail.h
+++ b/sys/sys/jail.h
@@ -378,6 +378,8 @@ extern struct sx allprison_lock;
*/
SYSCTL_DECL(_security_jail_param);
+#define SYSCTL_JAIL_PARAM_DECL(name) \
+ SYSCTL_DECL(_security_jail_param_##name)
#define SYSCTL_JAIL_PARAM(module, param, type, fmt, descr) \
SYSCTL_PROC(_security_jail_param ## module, OID_AUTO, param, \
(type) | CTLFLAG_MPSAFE, NULL, 0, sysctl_jail_param, fmt, descr)