From dddab5028d4857f4fa8f1cb7711ebaad0103321f Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 19 Feb 2018 00:24:48 +0000 Subject: [PATCH] make sure only root can configure an interface with SIOCSLIFPHYDF. --- 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 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: -- 2.20.1