summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorpamela <pamela@cvs.openbsd.org>2019-08-25 18:46:41 +0000
committerpamela <pamela@cvs.openbsd.org>2019-08-25 18:46:41 +0000
commit32f19df2330c4abd9e545e1a7d703f031958db6a (patch)
treeccb538f7ad725e39b7a7cef2619028e9ecb2d04c /sys/kern
parent20ff9bc618ded31d77a9a66103ab8c80fc4dea04 (diff)
Add SIOCDIFADDR_IN6 to the wroute pledge to allow removal of IPv6 addresses
Needed for future slaacd(8) improvements OK florian@ deraadt@
Diffstat (limited to 'sys/kern')
-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 f25dcbc6010..74b7f59cba7 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.254 2019/06/26 17:04:55 robert Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.255 2019/08/25 18:46:40 pamela Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1299,6 +1299,7 @@ pledge_ioctl(struct proc *p, long com, struct file *fp)
if ((p->p_p->ps_pledge & PLEDGE_WROUTE)) {
switch (com) {
case SIOCAIFADDR_IN6:
+ case SIOCDIFADDR_IN6:
if (fp->f_type == DTYPE_SOCKET)
return (0);
break;