From: dlg Date: Tue, 20 Feb 2018 03:46:45 +0000 (+0000) Subject: only allow root to use SIOCSVNETFLOWID. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9736dd937c272c885910612a0f5406df86543ab9;p=openbsd only allow root to use SIOCSVNETFLOWID. --- diff --git a/sys/net/if.c b/sys/net/if.c index 1bdb92ff5be..40ca01716dc 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.546 2018/02/19 08:59:52 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.547 2018/02/20 03:46:45 dlg Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2119,6 +2119,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) case SIOCDELMULTI: case SIOCSIFMEDIA: case SIOCSVNETID: + case SIOCSVNETFLOWID: case SIOCSIFPAIR: case SIOCSIFPARENT: case SIOCDIFPARENT: