local-disable-ioctls
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 3 Oct 2023 17:14:06 +0000 (18:14 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 3 Oct 2023 17:14:06 +0000 (18:14 +0100)
struct ortentry and struct ifalias req are actually not defined
struct arpreq is defined, but can not be passed to an ioctl on the Hurd.
so let's make packages not believe these are available.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-disable-ioctls.diff

sysdeps/mach/hurd/bits/ioctls.h

index 943d5e4287d1f9bbe4a3ada8f97bef647a360aa0..34dca41d7cfd4bcd8b61cf2c04c36f2e307c63ce 100644 (file)
@@ -304,12 +304,16 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 };
 #define        SIOCGIFMETRIC   _IOWR('i',23, struct ifreq_int) /* get IF metric */
 #define        SIOCSIFMETRIC   _IOW('i',24, struct ifreq_int)  /* set IF metric */
 #define        SIOCDIFADDR     _IOW('i',25, struct ifreq)      /* delete IF addr */
+#if 0
 #define        SIOCAIFADDR     _IOW('i',26, struct ifaliasreq) /* add/chg IF alias */
+#endif
 
+#if 0
 #define        SIOCSARP        _IOW('i', 30, struct arpreq)    /* set arp entry */
 #define        OSIOCGARP       _IOWR('i',31, struct arpreq)    /* get arp entry */
 #define        SIOCGARP        _IOWR('i',38, struct arpreq)    /* get arp entry */
 #define        SIOCDARP        _IOW('i', 32, struct arpreq)    /* delete arp entry */
+#endif
 
 #define SIOCGIFMTU     _IOWR('i', 51, struct ifreq_int)/* get IF mtu */
 #define SIOCSIFMTU     _IOW('i', 52, struct ifreq_int) /* set IF mtu */