diff options
author | 2015-12-03 16:05:51 +0000 | |
---|---|---|
committer | 2015-12-03 16:05:51 +0000 | |
commit | c5b34c4344b66ff18759b58c461973134cf96131 (patch) | |
tree | 379cf13be26eb88d8a08d267ea391f691c8f091a | |
parent | Print the interface index, we no longer have a pointer to the interface. (diff) | |
download | wireguard-openbsd-c5b34c4344b66ff18759b58c461973134cf96131.tar.xz wireguard-openbsd-c5b34c4344b66ff18759b58c461973134cf96131.zip |
pledge(pf) needs to allow DIOCKILLSRCNODES, used in relayd.
ok deaadt@
-rw-r--r-- | sys/kern/kern_pledge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index d05ba6b18fb..37146f4f0b3 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.128 2015/11/29 03:23:19 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.129 2015/12/03 16:05:51 benno Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -1214,6 +1214,7 @@ pledge_ioctl(struct proc *p, long com, struct file *fp) case DIOCRSETADDRS: case DIOCXBEGIN: case DIOCXCOMMIT: + case DIOCKILLSRCNODES: if ((fp->f_type == DTYPE_VNODE) && (vp->v_type == VCHR) && (cdevsw[major(vp->v_rdev)].d_open == pfopen)) |