only allow root to use SIOCSVNETFLOWID.
authordlg <dlg@openbsd.org>
Tue, 20 Feb 2018 03:46:45 +0000 (03:46 +0000)
committerdlg <dlg@openbsd.org>
Tue, 20 Feb 2018 03:46:45 +0000 (03:46 +0000)
sys/net/if.c

index 1bdb92f..40ca017 100644 (file)
@@ -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: