From 9736dd937c272c885910612a0f5406df86543ab9 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 20 Feb 2018 03:46:45 +0000 Subject: [PATCH] only allow root to use SIOCSVNETFLOWID. --- sys/net/if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.20.1