Skip to content

Commit 7c87862

Browse files
committed
privsep: Test defines for all ioctls
1 parent 840f56d commit 7c87862

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/privsep-root.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,13 @@ ps_root_doioctl(unsigned long req, void *data, size_t len)
205205

206206
/* Only allow these ioctls */
207207
switch (req) {
208+
#ifdef SIOCSIFADDR
209+
case SIOCSIFADDR: /* FALLTHROUGH */
210+
#endif
208211
#ifdef SIOCAIFADDR
209212
case SIOCAIFADDR: /* FALLTHROUGH */
213+
#endif
214+
#ifdef SIOCDIFADDR
210215
case SIOCDIFADDR: /* FALLTHROUGH */
211216
#endif
212217
#ifdef SIOCSIFHWADDR

0 commit comments

Comments
 (0)