android_packages_modules_Co.../service
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Oliver Scott 0e19223594
Always drop non-VPN ingress in lockdown mode
When "Block connections without VPN" is specified, incoming traffic
from non-VPN interfaces should be blocked regardless of the
determination made by ConnectivityService#getVpnIsolationInterface.
Outgoing traffic to non-VPN interfaces is already blocked in this case.
(Loopback is excluded as usual.)

Test: `adb shell dumpsys connectivity trafficcontroller` will now show
the tunnel interface for uids affected by lockdown when
getVpnIsolationInterface returns null (wildcard), to block non-VPN
ingress to such uids. This will return to 0 (wildcard) when lockdown
is toggled back off.

Also includes squashed change:

Author: Tommy Webb <tommy@calyxinstitute.org>
Date:   Mon May 1 16:52:28 2023 -0400

    fixup! Always drop non-VPN ingress in lockdown mode

    For lockdown purposes, force an update of VPN filtering whenever the
    interface names for a VPN have changed, to ensure that the BPF owner
    map uses the most up-to-date interface for ingress filtering.

    Issue: calyxos#1651
    Change-Id: Ia0c75a723134023906134597b395653c7a570686

Co-authored-by: Tommy Webb <tommy@calyxinstitute.org>
Issue: calyxos#1255
Bug: 206482423
Change-Id: Id7954816566cb06bf2e9869ea98b20678835df9d
2026-01-19 09:54:05 -05:00
..
aidl_api/connectivity_native_aidl_interface Vendor AIDL interface for port blocking via eBPF 2022-03-25 09:14:48 -07:00
binder/android/net/connectivity/aidl Vendor AIDL interface for port blocking via eBPF 2022-03-25 09:14:48 -07:00
jni BpfBitmap: some minor optimizations 2025-08-12 16:02:23 -07:00
libconnectivity noop: change from deprecated __ANDROID_API_U__ to 34 2025-02-18 15:07:40 -08:00
native/libs/libclat libclat_test: use static libc++ 2025-02-21 11:59:49 -08:00
proto Add SystemMessages protos to Connectivity 2021-03-18 20:04:52 +09:00
ServiceConnectivityResources Automated log_list.json generation version 55.3 2025-06-12 10:10:54 -07:00
src/com/android Always drop non-VPN ingress in lockdown mode 2026-01-19 09:54:05 -05:00
Android.bp Move #nativeWaitForService into CommonConnectivityJni 2025-08-06 10:44:39 -07:00
art-profile Add ART profile to Connectivity service. 2025-07-29 07:12:08 -07:00
jarjar-excludes.txt Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
lint-baseline.xml Revert "Prepare for @RequiresApi class retention" 2024-06-26 19:14:30 +09:00
proguard.flags Move the Thread proguard flags to ConnectivityService's proguard.flags 2024-01-26 09:14:53 +00:00