mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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 f7bda491ef)
This commit is contained in:
parent
7340eb4408
commit
4ccba65f91
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue