diff options
author | 2016-03-13 15:27:21 +0000 | |
---|---|---|
committer | 2016-03-13 15:27:21 +0000 | |
commit | a52663b50e92f26b33da8a394b8352fdb6273155 (patch) | |
tree | f0b82b7f2b66570872e08de92d2b51867a0eb8f8 | |
parent | pledge: replace #if 0 printf with DNPRINTF macro (diff) | |
download | wireguard-openbsd-a52663b50e92f26b33da8a394b8352fdb6273155.tar.xz wireguard-openbsd-a52663b50e92f26b33da8a394b8352fdb6273155.zip |
reenable wl_paths (whitelisted-paths) in pledge(2)
-rw-r--r-- | sys/kern/kern_pledge.c | 5 |
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)) { |