From db23174ccd468e3b4ab629b5a70043d7f9fd7cc5 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 9 Sep 2015 17:56:59 +0000 Subject: [PATCH] Move to next tame() API. The flags are now passed as a very simple string, which results in tame() code placements being much more recognizeable. tame() can be moved to unistd.h and does not need cpp symbols to turn the bits on and off. The resulting API is a bit unexpected, but simplifies the mapping to enabling bits in the kernel substantially. vague ok's from various including guenther doug semarie --- src/include/unistd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/unistd.h b/src/include/unistd.h index 22a167ee..cf6653ce 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.98 2015/08/26 01:54:08 guenther Exp $ */ +/* $OpenBSD: unistd.h,v 1.99 2015/09/09 17:56:59 deraadt Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -539,6 +539,7 @@ int strtofflags(char **, u_int32_t *, u_int32_t *); int swapctl(int cmd, const void *arg, int misc); int syscall(int, ...); int getentropy(void *, size_t); +int tame(const char *, const char **paths); pid_t __tfork_thread(const struct __tfork *, size_t, void (*)(void *), void *); #endif /* __BSD_VISIBLE */