summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2019-02-26 03:20:08 +0000
committerdlg <dlg@openbsd.org>2019-02-26 03:20:08 +0000
commit28acf0f8375051a641071af1be8c88356d9484fd (patch)
tree9cbda9aa5adfcb751f6b131352adb68f5368f43a /sys/net/if.c
parentadd some generic ioctls for configuring mpls pseudowire parameters. (diff)
downloadwireguard-openbsd-28acf0f8375051a641071af1be8c88356d9484fd.tar.xz
wireguard-openbsd-28acf0f8375051a641071af1be8c88356d9484fd.zip
check for root on mpls and pwe3 ioctls
part of a larger diff ok mpi@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 6ead594ff76..9548c21293c 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.571 2019/01/09 01:14:21 dlg Exp $ */
+/* $OpenBSD: if.c,v 1.572 2019/02/26 03:20:08 dlg Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -2159,6 +2159,13 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
case SIOCSIFPAIR:
case SIOCSIFPARENT:
case SIOCDIFPARENT:
+ case SIOCSETMPWCFG:
+ case SIOCSETLABEL:
+ case SIOCDELLABEL:
+ case SIOCSPWE3CTRLWORD:
+ case SIOCSPWE3FAT:
+ case SIOCSPWE3NEIGHBOR:
+ case SIOCDPWE3NEIGHBOR:
if ((error = suser(p)) != 0)
break;
/* FALLTHROUGH */