The branch stable/13 has been updated by olce:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f30f1a14f772cb31e745b779936db6a6b301b4c0

commit f30f1a14f772cb31e745b779936db6a6b301b4c0
Author:     Olivier Certner <o...@freebsd.org>
AuthorDate: 2024-07-04 09:05:44 +0000
Commit:     Olivier Certner <o...@freebsd.org>
CommitDate: 2025-01-17 12:24:50 +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
    
    (cherry picked from commit 9f8020e65ba8f2398bf79505037b75670340e5fa)
---
 sys/sys/jail.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/sys/jail.h b/sys/sys/jail.h
index 942da2a87b81..11d3745ba2d2 100644
--- a/sys/sys/jail.h
+++ b/sys/sys/jail.h
@@ -390,6 +390,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().

Reply via email to