summaryrefslogtreecommitdiff
path: root/sys/kern/kern_tame.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_tame.c')
-rw-r--r--sys/kern/kern_tame.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/kern_tame.c b/sys/kern/kern_tame.c
index 3ef4b117af7..9fc57ba1ad2 100644
--- a/sys/kern/kern_tame.c
+++ b/sys/kern/kern_tame.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tame.c,v 1.9 2015/07/20 18:04:05 schwarze Exp $ */
+/* $OpenBSD: kern_tame.c,v 1.10 2015/07/20 18:58:53 jeremy Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -77,6 +77,12 @@ const u_int tame_syscalls[SYS_MAXSYSCALL] = {
[SYS_fchdir] = _TM_SELF, /* careful of directory fd inside jails */
+ /* needed by threaded programs */
+ [SYS_sched_yield] = _TM_SELF,
+ [SYS___thrsleep] = _TM_SELF,
+ [SYS___thrwakeup] = _TM_SELF,
+ [SYS___threxit] = _TM_SELF,
+
[SYS_sendsyslog] = _TM_SELF,
[SYS_nanosleep] = _TM_SELF,
[SYS_sigprocmask] = _TM_SELF,