From: deraadt Date: Fri, 23 Oct 2015 15:53:49 +0000 (+0000) Subject: Allow SIOCGIFINFO_IN6 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=02811cbbb953dd081164aaa85b88d336987db6d3;p=openbsd Allow SIOCGIFINFO_IN6 --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 561409505be..4840300478b 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.67 2015/10/23 10:22:29 claudio Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.68 2015/10/23 15:53:49 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -1121,13 +1121,14 @@ pledge_ioctl_check(struct proc *p, long com, void *v) if ((p->p_p->ps_pledge & PLEDGE_ROUTE)) { switch (com) { case SIOCGIFADDR: - case SIOCGIFDSTADDR_IN6: case SIOCGIFFLAGS: case SIOCGIFMETRIC: - case SIOCGIFNETMASK_IN6: + case SIOCGIFGMEMB: case SIOCGIFRDOMAIN: + case SIOCGIFDSTADDR_IN6: + case SIOCGIFNETMASK_IN6: case SIOCGNBRINFO_IN6: - case SIOCGIFGMEMB: + case SIOCGIFINFO_IN6: if (fp->f_type == DTYPE_SOCKET) return (0); break;