diff options
Diffstat (limited to 'sys/sys/capsicum.h')
-rw-r--r-- | sys/sys/capsicum.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/capsicum.h b/sys/sys/capsicum.h index 93c5f0c9c390..e2f305462f0d 100644 --- a/sys/sys/capsicum.h +++ b/sys/sys/capsicum.h @@ -417,6 +417,13 @@ __END_DECLS #ifdef _KERNEL #include <sys/systm.h> +#include <sys/ktrace.h> + +#ifdef KTRACE +#define CAP_TRACING(td) KTRPOINT((td), KTR_CAPFAIL) +#else +#define CAP_TRACING(td) 0 +#endif #define IN_CAPABILITY_MODE(td) (((td)->td_ucred->cr_flags & CRED_FLAG_CAPMODE) != 0) |