android_packages_modules_Co.../framework
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motomu Utsumi 8b42e6d431 Remove LOCKDOWN from FirewallChain IntDef
LOCKDOWN_VPN was in the FirewallChain IntDef but this was not a right
place because LOCKDOWN_VPN was not a valid value for Connectivity APIs
that take an argument annotated with @FirewallChain(setUidFirewallRule,
setFirewallChainEnabled, replaceFirewallChain).

LOCKDOWN_VPN was in the FirewallChain IntDef because
BpfNetMaps#setUidRule was used to add/remove LOCKDOWN_VPN entries.
This commit adds BpfNetMaps#updateUidLockdownRule and uses this to
add/remove LOCKDOWN_VPN entries instead of BpfNetMaps#setUidRule and
removes LOCKDOWN from FirewallChain.

Bug: 206482423
Test: atest TrafficControllerTest ConnectivityServiceTest
PermissionMonitorTest HostsideVpnTests#testBlockIncomingPacket

Change-Id: Iff9b9792fc0f208f153e10e396c6d5034b412d7c
2022-06-10 02:49:25 +00:00
..
aidl-export/android/net Merge history of ConnectivityT 2022-03-25 11:02:45 +00:00
api Merge "Add @RequiresPermission for setUnderlyingNetworks" 2022-03-29 15:34:17 +00:00
jni Revert "Autogenerate connectivity jarjar rules" 2022-05-18 18:30:27 +00:00
proto [MS54.3] Move NetworkStats to updatable sources 2022-02-28 03:24:19 +00:00
src/android/net Remove LOCKDOWN from FirewallChain IntDef 2022-06-10 02:49:25 +00:00
Android.bp Revert "Autogenerate connectivity jarjar rules" 2022-05-18 18:30:27 +00:00