diff options
author | Jeremy Evans <jeremy@cvs.openbsd.org> | 2015-07-20 18:58:54 +0000 |
---|---|---|
committer | Jeremy Evans <jeremy@cvs.openbsd.org> | 2015-07-20 18:58:54 +0000 |
commit | 2084b95b807f999a25b4e2655cb59c6db6c43e01 (patch) | |
tree | 5119784cdd9699705aa8a3a89da4be4ff4ebda51 /sys/kern | |
parent | db6ef231d6e9386bca8515d2277fb1d01dee7a34 (diff) |
Allow the sched_yield, __thrsleep, __thrwakeup, and __threxit syscalls
when using tame(2). This allows threaded programs to work.
OK deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_tame.c | 8 |
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, |