No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Oliver Scott 19f95c26ad 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
2025-08-25 10:45:17 +01:00
bpf Use BPF to block socket creation when restricted 2025-08-25 10:45:17 +01:00
clatd clatd: fix endianness of multicast drop 2025-03-21 12:55:32 -07:00
common LocalNetAccessKey - improve toString 2025-03-19 20:34:48 -07:00
framework Make NetworkAgent#sendNetworkInfo public again 2025-04-09 18:28:23 -07:00
framework-t Correct OffloadServiceInfo Javadoc 2025-01-09 12:48:09 +09:00
nearby Replace .toList() with .collect() am: 725078a6bd am: 6586d080f6 2025-02-03 17:40:50 -08:00
networksecurity Merge "Add NetworkSecurityUnitTests to tethering-mainline-presubmit" into main 2025-03-18 02:49:34 -07:00
remoteauth Merge "packages/modules/Connectivity: remove usages of Mockito.verifyZeroInteractions" into main 2025-03-11 04:57:42 -07:00
service Always drop non-VPN ingress in lockdown mode 2025-08-25 10:45:17 +01:00
service-b Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
service-t Ensure PacketHandler is removed from sockets 2025-04-07 20:00:49 -07:00
staticlibs Remove non-functional IGMPv3 test and flaky APF checks 2025-04-22 18:31:57 -07:00
tests Completely disable flaky APF multidevice CTS class 2025-04-24 19:51:37 -07:00
Tethering Disallow non-VPN tethering upstreams on always-on VPN lockdown mode 2025-06-15 22:15:14 +03:00
thread [Thread] fix CTS test for Android TV U 2025-03-23 23:22:24 -07:00
tools Remove dependencies on the 1-variant fallback 2024-10-22 16:31:00 -07:00
.clang-format Add .clang-format 2025-03-23 19:59:10 -07:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking Add jimictw@ to core networking OWNERS. 2025-01-24 01:06:33 -08:00
OWNERS_core_networking_xts Add yuyanghuang@ to OWNERS_core_networking_xts for APF firmware tests 2025-03-14 13:16:04 +09:00
PREUPLOAD.cfg Disable ktfmt and rely solely on ktlint for Kotlin linting 2024-12-13 12:29:19 +09:00
TEST_MAPPING Use CtsTetheringTest in TEST_MAPPING 2025-02-05 12:50:33 +09:00