make sure only root can configure an interface with SIOCSLIFPHYDF.
authordlg <dlg@openbsd.org>
Mon, 19 Feb 2018 00:24:48 +0000 (00:24 +0000)
committerdlg <dlg@openbsd.org>
Mon, 19 Feb 2018 00:24:48 +0000 (00:24 +0000)
sys/net/if.c

index ffafd37..91c3d5a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if.c,v 1.544 2018/02/10 09:32:54 claudio Exp $        */
+/*     $OpenBSD: if.c,v 1.545 2018/02/19 00:24:48 dlg Exp $    */
 /*     $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $  */
 
 /*
@@ -2114,6 +2114,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
        case SIOCSLIFPHYADDR:
        case SIOCSLIFPHYRTABLE:
        case SIOCSLIFPHYTTL:
+       case SIOCSLIFPHYDF:
        case SIOCADDMULTI:
        case SIOCDELMULTI:
        case SIOCSIFMEDIA: