summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2020-09-03 23:28:36 -0700
committerThiago Macieira <thiago.macieira@intel.com>2021-09-29 07:35:43 +0000
commitab4e78b435bbd08b2b00f86360c729519846eeaf (patch)
treed9ed5976afdebdd64db2f98c6bb62c9c66cca2cf
parentdaaf3a2eba1a76b511947de2c73e3de0b95aded7 (diff)
QNetworkInterface: disable Netlink-based Linux support on Android
Android 11's SELinux rules block the RTM_GETLINK requests that qnetworkinterface_linux.cpp needs to make. So disable this completely and fall back on the older rimplementation. Bionic has some workarounds in their getifaddrs() implementation to make this work. Fixes: QTBUG-86394 Change-Id: I87447a0ecdee4dc7b506fffd163180c2b1db7835 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit e33d40a88476e8a9d4f950fb285c75d0c1a92a2e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c07eff7d9477a5a098c76fb2107d9f902c2999ac)
-rw-r--r--src/network/configure.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/configure.json b/src/network/configure.json
index 47a4ec12f2..dd3b5c295c 100644
--- a/src/network/configure.json
+++ b/src/network/configure.json
@@ -212,7 +212,7 @@
},
"linux-netlink": {
"label": "Linux AF_NETLINK",
- "condition": "config.linux && tests.linux-netlink",
+ "condition": "config.linux && !config.android && tests.linux-netlink",
"output": [ "privateFeature" ]
},
"openssl": {