summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-13 18:42:06 +0000
committerderaadt <deraadt@openbsd.org>2015-10-13 18:42:06 +0000
commit733b77e859e04b37a96d7edf812b3f3ab5bf0ac6 (patch)
tree64006f390e6088569d7da0a1c7c05b8941884c10
parentNET_RT_FLAGS must also accept a proto selection. (diff)
downloadwireguard-openbsd-733b77e859e04b37a96d7edf812b3f3ab5bf0ac6.tar.xz
wireguard-openbsd-733b77e859e04b37a96d7edf812b3f3ab5bf0ac6.zip
Allow ioctl SIOCGNBRINFO_IN6 in case of "route", for use by ndp.
-rw-r--r--sys/kern/kern_pledge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 2e603de7d89..7d1b8d22674 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.20 2015/10/13 18:38:34 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.21 2015/10/13 18:42:06 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1097,6 +1097,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
case SIOCGIFADDR:
case SIOCGIFFLAGS:
case SIOCGIFRDOMAIN:
+ case SIOCGNBRINFO_IN6:
if (fp->f_type == DTYPE_SOCKET)
return (0);
break;