summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/tame.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/tame.c')
-rw-r--r--lib/libc/sys/tame.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/sys/tame.c b/lib/libc/sys/tame.c
new file mode 100644
index 00000000000..4774a17afeb
--- /dev/null
+++ b/lib/libc/sys/tame.c
@@ -0,0 +1,17 @@
+/* $OpenBSD: tame.c,v 1.1 2015/10/09 01:24:57 deraadt Exp $ */
+/*
+ * Written by Artur Grabowski <art@openbsd.org> Public Domain
+ */
+
+#include <sys/types.h>
+#include <sys/syscall.h>
+#include <unistd.h>
+
+int tame(const char *req, const char **paths);
+
+int
+tame(const char *req, const char **paths)
+{
+ return (pledge(req, paths));
+}
+DEF_WEAK(mquery);