blob: 6ca9785a37f0842bf2e0cf9613f271d706b105df [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001diff --git a/system/netd/server/RouteController.cpp b/system/netd/server/RouteController.cpp
2index 1d9f1e4..aee06f2 100644
3--- a/system/netd/server/RouteController.cpp
4+++ b/system/netd/server/RouteController.cpp
5@@ -738,7 +738,7 @@ WARN_UNUSED_RESULT int addDirectlyConnectedRule() {
6 mask.netId = FWMARK_NET_ID_MASK;
7
8 return modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_DIRECTLY_CONNECTED, RT_TABLE_MAIN,
9- fwmark.intValue, mask.intValue, IIF_NONE, OIF_NONE, UID_ROOT, UID_ROOT);
10+ fwmark.intValue, mask.intValue, IIF_NONE, OIF_NONE, INVALID_UID, INVALID_UID);
11 }
12
13 // Add an explicit unreachable rule close to the end of the prioriy list to make it clear that