summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-02-19 00:24:49 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-02-19 00:24:49 +0000
commita7a2bab2fa2bba51c6b3dc16e7a63c5f9ac4ed4a (patch)
treef8f9ef94debde251c330a8cd3961bb6c0d15693b /sys/net/if.c
parentcb85717eb553f6f741f467fb3782b14270b3dacb (diff)
make sure only root can configure an interface with SIOCSLIFPHYDF.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c3
1 files changed, 2 insertions, 1 deletions
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: