summaryrefslogtreecommitdiffstats
path: root/src/privsep-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-09-24 03:31:43 +0100
committerRoy Marples <roy@marples.name>2020-09-24 03:31:43 +0100
commitec4013c25f1d3fea81fff0b8410dc75a4c7eaa30 (patch)
tree03d8412529cdbf55e49e88e7bd8376582972523a /src/privsep-bsd.c
parentfbae1f3873b31da041c58cefaa3667fe2282a629 (diff)
downloaddhcpcd-ec4013c25f1d3fea81fff0b8410dc75a4c7eaa30.tar.xz
BSD: NetBSD is the odd man out with SIOCGIFDATA
So setup the #defines like so. On OpenBSD, pledge blocks it and there is no escape. Luckily we already allow indirect ioctls via privsep so it works fine.
Diffstat (limited to 'src/privsep-bsd.c')
-rw-r--r--src/privsep-bsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/privsep-bsd.c b/src/privsep-bsd.c
index d09686d8..2dc1d749 100644
--- a/src/privsep-bsd.c
+++ b/src/privsep-bsd.c
@@ -55,6 +55,9 @@ ps_root_doioctldom(int domain, unsigned long req, void *data, size_t len)
/* Only allow these ioctls */
switch(req) {
+#ifdef SIOCGIFDATA
+ case SIOCGIFDATA: /* FALLTHROUGH */
+#endif
#ifdef SIOCG80211NWID
case SIOCG80211NWID: /* FALLTHROUGH */
#endif