From: dlg Date: Mon, 19 Feb 2018 00:24:48 +0000 (+0000) Subject: make sure only root can configure an interface with SIOCSLIFPHYDF. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dddab5028d4857f4fa8f1cb7711ebaad0103321f;p=openbsd make sure only root can configure an interface with SIOCSLIFPHYDF. --- diff --git a/sys/net/if.c b/sys/net/if.c index ffafd37f452..91c3d5aeb14 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -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: