summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-11-13 01:36:27 +0000
committerderaadt <deraadt@openbsd.org>2019-11-13 01:36:27 +0000
commita830399cafe11521f69d922a11eb3ef4438aaf88 (patch)
treeca92157d6c49a388a135f7303927cdc5d680840a /sys/net/if.c
parentcheck for privileged bridges ioctls next to the other privileged ioctls. (diff)
downloadwireguard-openbsd-a830399cafe11521f69d922a11eb3ef4438aaf88.tar.xz
wireguard-openbsd-a830399cafe11521f69d922a11eb3ef4438aaf88.zip
unbreak ramdisks
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 929ea5c0d82..c0c2657d9ab 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.596 2019/11/12 23:27:15 dlg Exp $ */
+/* $OpenBSD: if.c,v 1.597 2019/11/13 01:36:27 deraadt Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -2257,6 +2257,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
case SIOCSPWE3FAT:
case SIOCSPWE3NEIGHBOR:
case SIOCDPWE3NEIGHBOR:
+#if NBRIDGE > 0
case SIOCBRDGADD:
case SIOCBRDGDEL:
case SIOCBRDGSIFFLGS:
@@ -2282,6 +2283,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
case SIOCSWGDPID:
case SIOCSWSPORTNO:
case SIOCSWGMAXFLOW:
+#endif
if ((error = suser(p)) != 0)
break;
/* FALLTHROUGH */