diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2024-07-04 09:50:04 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2025-01-16 18:06:55 +0000 |
| commit | 4ccba65f91907df7bfe6b2e447eb0d28519f4125 (patch) | |
| tree | 9b4d954e9f3d8df01c2ef408927551bdb9698685 | |
| parent | 7340eb44087fe067b0bac9f32cbc07342b5261e1 (diff) | |
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
(cherry picked from commit f7bda491ef05717fb4fe6c89083485599db951b8)
| -rw-r--r-- | sys/sys/jail.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/jail.h b/sys/sys/jail.h index 053f68a36735..0b0ee9cdde0f 100644 --- a/sys/sys/jail.h +++ b/sys/sys/jail.h @@ -375,6 +375,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) |
