summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkStackTest.java
diff options
context:
space:
mode:
authort-m-w <tmwcommits@gmail.com>2022-10-11 15:16:16 +0000
committerSemavi Ulusoy <doc.divxm@gmail.com>2022-11-04 07:49:17 +0300
commitf77c4cd287901f63f6529e83683430811e9ac7c1 (patch)
treecb415e911f40b74898523ec9634c9e1b4886b9f4 /tests/common/java/android/net/NetworkStackTest.java
parenteb4aa87d8c46581f0f4db4a9821b0d1015a9af4b (diff)
Firewall: Support a greater number of apps/uids
Devices with a large number of app uids, particularly those with multiple work profiles or secondary users, may quietly experience failures making adjustments to firewall rules, resulting in apps being blocked from accessing the network when they should be allowed, and becoming a noticeable problem when using Battery Saver mode. The misleading "Argument list too long" error in logs signifies that a BPF map (uid_owner_map in this case) has reached its maximum entries. This patch doubles that to 4000. uid_permission_map is also affected, and because uid_counterset_map involves uids too, we do the same there. bpf_shared.h contains comments urging caution with regard to potential kernel memory limits. Fortunately, BPF maps have been consolidated since the comments were written, leaving enough room to easily make this change without cause for concern. This patch effectively increases the total size of BPF maps from 3643K to 4077K, which remains beneath the 4930K used by the maps' pre-consolidation implementation. Issue: calyxos#1249 Change-Id: I293f99ec498e4ccac98c39f298ba01ba554f2e33
Diffstat (limited to 'tests/common/java/android/net/NetworkStackTest.java')
0 files changed, 0 insertions, 0 deletions