From 02811cbbb953dd081164aaa85b88d336987db6d3 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 23 Oct 2015 15:53:49 +0000 Subject: [PATCH] Allow SIOCGIFINFO_IN6 --- sys/kern/kern_pledge.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; -- 2.20.1