summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-22 20:18:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-22 20:18:51 +0000
commit2ac731a695734affb7b043d00704546556752caf (patch)
tree40fb580f9f213bfdbc37b90b8a2165b679e27620 /sys/kern/sys_generic.c
parent727aafc0b540434e1fd357c1d8f5f8c69edb767d (diff)
Move to tame(int flags, char *paths[]) API/ABI.
The pathlist is a whitelist of dirs and files; anything else returns ENOENT. Recommendation is to use a narrowly defined list. Also add TAME_FATTR, which permits explicit change operations against "struct stat" fields. Some other TAME_ flags are refined slightly. Not cranking libc now, since nothing commited in base uses this and the timing is uncomfortable for others. Discussed with many; thanks for a few bug fixes from semarie, doug, guenther. ok guenther
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r--sys/kern/sys_generic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index d1c89d52c98..13491d425a2 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_generic.c,v 1.100 2015/07/28 05:50:41 guenther Exp $ */
+/* $OpenBSD: sys_generic.c,v 1.101 2015/08/22 20:18:49 deraadt Exp $ */
/* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */
/*
@@ -52,7 +52,6 @@
#include <sys/stat.h>
#include <sys/malloc.h>
#include <sys/poll.h>
-#include <sys/tame.h>
#ifdef KTRACE
#include <sys/ktrace.h>
#endif