summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2016-03-13 15:27:22 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2016-03-13 15:27:22 +0000
commit2c95e628bf12ac736a8508b15c2eaf16e02fcad5 (patch)
tree7b266b3f08fcf3874f22a3f1816b3f5d3c527bf5 /sys/kern
parentee02af3c6a15dc778908e5829d4b6192bb078559 (diff)
reenable wl_paths (whitelisted-paths) in pledge(2)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_pledge.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index a834e3594aa..78fbc9f269a 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.153 2016/03/13 15:05:15 semarie Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.154 2016/03/13 15:27:21 semarie Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -448,8 +448,6 @@ sys_pledge(struct proc *p, void *v, register_t *retval)
}
if (SCARG(uap, paths)) {
- return (EINVAL);
-#if 0
const char **u = SCARG(uap, paths), *sp;
struct whitepaths *wl;
char *path, *rdir = NULL, *cwd = NULL;
@@ -532,7 +530,6 @@ sys_pledge(struct proc *p, void *v, register_t *retval)
wl->wl_paths[i].name,
(long long)wl->wl_paths[i].len);
#endif
-#endif
}
if (SCARG(uap, request)) {