From 733b77e859e04b37a96d7edf812b3f3ab5bf0ac6 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 13 Oct 2015 18:42:06 +0000 Subject: [PATCH] Allow ioctl SIOCGNBRINFO_IN6 in case of "route", for use by ndp. --- sys/kern/kern_pledge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -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; -- 2.20.1