+@@ -865,7 +865,9 @@
+ /* Issue #22258: Here, ENOTTY means "Inappropriate ioctl for
+ device". The ioctl is declared but not supported by the kernel.
+ Remember that ioctl() doesn't work. It is the case on
+- Illumos-based OS for example. */
++ Illumos-based OS for example.
++ EACCES may be the result of an SELinux policy disabling
++ ioctl on sockets. This is the case on Android. */
+ ioctl_works = 0;
+ }
+ /* fallback to fcntl() if ioctl() does not work */