aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/signal.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-09-21 08:23:33 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-09-21 08:23:33 +0000
commit643f6f47fd57742a2cdf8ef393105403eb8cb01c (patch)
treee282ef0e4838622734297617171e0db04756ae9b /sys/sys/signal.h
parent5271129cd6573dfd9bbd433cb94f40a6bedcafaf (diff)
downloadsrc-643f6f47fd57742a2cdf8ef393105403eb8cb01c.tar.gz
src-643f6f47fd57742a2cdf8ef393105403eb8cb01c.zip
Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap.
Both can be used to cause processes in capability mode to receive SIGTRAP when ENOTCAPABLE or ECAPMODE errors are returned from syscalls. Idea by: emaste Reviewed by: oshogbo (previous version), emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D7965
Notes
Notes: svn path=/head/; revision=306081
Diffstat (limited to 'sys/sys/signal.h')
-rw-r--r--sys/sys/signal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/signal.h b/sys/sys/signal.h
index 86a07e167c86..a8444658971f 100644
--- a/sys/sys/signal.h
+++ b/sys/sys/signal.h
@@ -291,6 +291,7 @@ typedef struct __siginfo {
#define TRAP_BRKPT 1 /* Process breakpoint. */
#define TRAP_TRACE 2 /* Process trace trap. */
#define TRAP_DTRACE 3 /* DTrace induced trap. */
+#define TRAP_CAP 4 /* Capabilities protective trap. */
/* codes for SIGCHLD */
#define CLD_EXITED 1 /* Child has exited */