From 32f19df2330c4abd9e545e1a7d703f031958db6a Mon Sep 17 00:00:00 2001 From: pamela Date: Sun, 25 Aug 2019 18:46:41 +0000 Subject: Add SIOCDIFADDR_IN6 to the wroute pledge to allow removal of IPv6 addresses Needed for future slaacd(8) improvements OK florian@ deraadt@ --- sys/kern/kern_pledge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern') 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 @@ -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; -- cgit v1.2.3