Browse Source

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
OPENBSD_5_9
deraadt 8 years ago
parent
commit
db23174ccd
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/include/unistd.h

+ 2
- 1
src/include/unistd.h View File

@ -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 */


Loading…
Cancel
Save