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
This commit is contained in:
Olivier Certner 2024-07-04 11:50:04 +02:00
parent 9f8020e65b
commit f7bda491ef
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -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)