summaryrefslogtreecommitdiffstats
path: root/sys/sys/procctl.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-09-28 09:28:26 +0000
committerkib <kib@FreeBSD.org>2016-09-28 09:28:26 +0000
commit99323399e34db51f6f54d27305ecdefe904a61cd (patch)
treebd9571099164439fc094a0b984670e3a87bca3f9 /sys/sys/procctl.h
parent71f3313e4975419065fd53a1c4cb6a135a94a686 (diff)
downloadFreeBSD-src-99323399e34db51f6f54d27305ecdefe904a61cd.zip
FreeBSD-src-99323399e34db51f6f54d27305ecdefe904a61cd.tar.gz
MFC r306081:
Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap.
Diffstat (limited to 'sys/sys/procctl.h')
-rw-r--r--sys/sys/procctl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/procctl.h b/sys/sys/procctl.h
index c6f1e94..8d0afc2 100644
--- a/sys/sys/procctl.h
+++ b/sys/sys/procctl.h
@@ -43,6 +43,8 @@
#define PROC_REAP_KILL 6 /* kill descendants */
#define PROC_TRACE_CTL 7 /* en/dis ptrace and coredumps */
#define PROC_TRACE_STATUS 8 /* query tracing status */
+#define PROC_TRAPCAP_CTL 9 /* trap capability errors */
+#define PROC_TRAPCAP_STATUS 10 /* query trap capability status */
/* Operations for PROC_SPROTECT (passed in integer arg). */
#define PPROT_OP(x) ((x) & 0xf)
@@ -102,6 +104,9 @@ struct procctl_reaper_kill {
#define PROC_TRACE_CTL_DISABLE 2
#define PROC_TRACE_CTL_DISABLE_EXEC 3
+#define PROC_TRAPCAP_CTL_ENABLE 1
+#define PROC_TRAPCAP_CTL_DISABLE 2
+
#ifndef _KERNEL
__BEGIN_DECLS
int procctl(idtype_t, id_t, int, void *);
OpenPOWER on IntegriCloud