- Apr 01, 2024
-
-
This effectively reverts aosp/2268766 Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I42da5c56fe4b69635b9678ff57ade7788c17f7c8
-
- Mar 19, 2024
-
-
Dhina17 authored
Android 14.0.0 release 29 Conflicts: Tethering/src/com/android/networkstack/tethering/UpstreamNetworkMonitor.java bpf_progs/netd.c service/src/com/android/server/ConnectivityService.java Change-Id: I28318b3004dd28c4ec8c53b46177961671e06993
-
- Jan 18, 2024
-
-
Change-Id: I812bc7c3af0ea75db3a6c980f6f9ce4ec5ab6671 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
Do not remove LOCKDOWN_VPN_MATCH from a UID if it is present in any of the supplied ranges that have yet to be removed. Change-Id: Ia95724cd19040f83cea2c169a2585ab5dbdddbac Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
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 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
Adapt BPF's inet socket creation rule to not only check INTERNET permission but also to ensure the uid is on the allowlist for restricted networking (has RESTRICTED_MATCH flag). Also includes squashed change: Author: Tommy Webb <tommy@calyxinstitute.org> Date: Thu Sep 7 03:59:21 2023 -0400 Deny socket creation for transport-blocked apps Prevent apps whose network access is blocked based on transport policies from creating sockets, too. Update the logic to match AOSP's "funky bit-wise arithmetic" from the latest Connectivity mainline. Test: Manual: Turn on Private DNS. Install Terminal Emulator. Connect to Wi-Fi (no VPN). Set Terminal Emulator's toggles to disable Wi-Fi. Run: `ping duckduckgo.com`. Should receive "unknown host" error, NOT "Network is unreachable". Same "unknown host" error should occur when testing with overall network access turned off for Terminal Emulator, with and without its Wi-Fi access also turned off. Issue: calyxos#581 Change-Id: I995e9929f6f8c1ae0613e05e0cade55a76c35902 Co-authored-by:
Oliver Scott <olivercscott@gmail.com> Change-Id: I912a4a2ee78a29ca8b7d8ff85e5ad7cf617c31a5 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
Using policies provided by NetworkPolicyManagerService (fw/b), allow or disallow an app to access a network based on network transport type, e.g. Wi-Fi or Cellular. Needs corresponding fw/b and netd changes. All networks are treated as being restricted, and only UIDs whose policy allows them on a transport are able to route outgoing traffic over a network of that type. In addition, to prevent incoming traffic to UIDs that are not allowed on the active network, and to handle UIDs that have a policy which prevents them from accessing VPNs, UIDs that are not allowed to access their active network are added to a denylist that prevents them from accessing networks in general. Networks which are truly restricted, however, such as for IMS, are left unchanged. Also includes squashed changes: Author: Tommy Webb <tommy@calyxinstitute.org> Date: Thu Apr 27 15:51:18 2023 -0400 fixup! Set allowed UIDs for networks based on policies Revert to prior network permission behavior here, and make necessary changes in netd instead. This improves clarity and allows UIDs to take advantage of default network rules which would otherwise require system-level permission, prior to this change. Related: Icd64aa530e8d202abb97d8325160a5d4c0b4c490 Change-Id: If5493deb96f88fe3ff5fc8a6a0c6d6d9bc77eff4 Author: Tommy Webb <tommy@calyxinstitute.org> Date: Wed Mar 22 09:05:18 2023 -0400 Expose new isUidCurrentlyDisallowedByPolicy Allows determining if a UID is blocked based on its transports. Change-Id: I2729b61c349ec2812a74d7d1c04b90a58b0f5b88 Author: Tommy Webb <tommy@calyxinstitute.org> Date: Wed Sep 20 15:19:45 2023 -0400 Use framework listener for allowed transports When allowed transports change, instead of exposing an API from Connectivity that the framework calls, add a new method to the framework's NetworkPolicyCallback that we override. This change benefits the prebuilt mainline module, preventing the need to fight with the platform to add new module APIs. Requires fw/b change of the same Change-Id. Change-Id: Ie476f23684b00397197184e965201d6823b28de2 Author: Tommy Webb <tommy@calyxinstitute.org> Date: Wed Sep 20 16:10:36 2023 -0400 Notify the framework about denylist changes When the denylist changes, instead of exposing an API from Connectivity that the framework calls, add a new method to the framework's NetworkPolicyManager that we call to inform it of this directly. This change benefits the prebuilt mainline module, preventing the need to fight with the platform to add new module APIs. Requires fw/b change of the same Change-Id. Change-Id: I3c3593f110753a3ce02af3739f600190f22e9663 Change-Id: I79342edbec92090cca20853ba50ea7fd48ec81c2 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
The setting is a factor used to determine the network permission level that is granted to an app. Restricted networking mode defaults to granting PERMISSION_SYSTEM to UIDs that are listed in the setting. This removal avoids this. Change-Id: I1e5af36f0fc9d4828b693bbb4b888c449bac3d29 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
* This ensures that the Hotspot "Allow clients to use VPN" option respects the VPN "Block connections without VPN" option, to avoid any leaks. Issue: calyxos#555 Change-Id: Ibd690c605a3d87e3c493550039a65862be16848b Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
Updated for Android 14, which does not handle CONNECTIVITY_ACTION and therefore does not react to VPN connections as it previously did. The new way to handle this is EVENT_DEFAULT_SWITCHED, but this only considered the system default network, not VPNs; now, in 14, when VPN upstreams are allowed, we follow the default network for ROOT_UID, mirroring this change's existing consideration of ROOT_UID. Uses AOSP Settings for easier APEX updates Squash of: Author: Sam Mortimer <sam@mortimer.me.uk> Date: Thu Aug 15 19:40:55 2019 -0700 fw/b: Add capability to allow tethering to use VPN upstreams * Toggled on/off at runtime via a new hotspot lineage setting. * Dynamically updates the tethering upstream for existing hotspot clients as VPNs are brought up / down or the hotspot setting is changed. * This implementation depends on fw/b config_tether_upstream_automatic being set to true. Change-Id: I2ac0b4acc0ea686dfdf54561cb3428808e337160 Author: Sam Mortimer <sam@mortimer.me.uk> Date: Fri Sep 13 16:27:37 2019 -0700 fw/b: Prevent trying to enable hw offload for tethering via VPN upstreams * Tethering via VPN upstream requires a sw path. * hw offload setup happened to be being disabled anyway owing to a fail return code from setDataLimit(). However, it was causing offload to be disabled entirely (until next hotspot off / on event). * Gracefully skip hw offload for vpn upstreams so that it is automatically used again when a vpn is disconnected. Change-Id: I4df13f02889305560903b7b1e919eedc7af78c07 * Previously if you had a VPN running in a work profile, it'd end up using that over user 0 VPN * Only use user 0 VPNs, as that makes most sense logically for a device-wide feature (hotspot) Issue: calyxos#912 Co-authored-by:
Tommy Webb <tommy@calyxinstitute.org> Change-Id: I77ed0142e653f4993486eea44e4dac21e3f67f17 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
Change-Id: I296f303a23351e4ab29898895abfcd313c747db9 Signed-off-by:
Mohammad Hasan Keramat J <ikeramat@protonmail.com>
-
- Dec 15, 2023
-
-
Android Build Coastguard Worker authored
Change-Id: I4e4c4684cf18cac96d55fbf83a9a5193ae48564b
-
- Dec 14, 2023
-
-
Android Build Coastguard Worker authored
Change-Id: I13cdeee2d47dbf7db3c43ce0aa7c90b377d00bfd
-
- Dec 13, 2023
-
-
Xinyi Zhou authored
am skip reason: Merged-In I7048917f5345f55364626901b533fee3d3856bf7 with SHA-1 f6fdf4cf is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871064 Change-Id: I2545a3cf70f680137fd73ddf21b6d4f6fc4b34c5 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
am skip reason: Merged-In I7048917f5345f55364626901b533fee3d3856bf7 with SHA-1 f6fdf4cf is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871064 Change-Id: Idb55949a529f5d7d5cccc876dd2e2340c4ae4d7f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871064 Change-Id: I937bdffcfcd4be32cd27cd931e28e8cfbc5ed2a8 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871064 Change-Id: Ie64888c5b9642c4cc45741dd30e196210e2c540c Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
am skip reason: Merged-In I7048917f5345f55364626901b533fee3d3856bf7 with SHA-1 f6fdf4cf is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871064 Change-Id: Iccdadde5349c58227ecbfcf7bbc2a58b5f59d630 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] Merge "Exclude user build devices for the test" into main am: 3f8cb43f am: 35a20256 am: 956db003 -s ours am skip reason: Merged-In Iaaca422cb105c00ded1d84b40afd745abcd651b7 with SHA-1 523eeb3c is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871069 Change-Id: Iee45c231b0cbbfcc795dc250efce0ba6edc97da2 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] Merge changes from topic "cherrypicker-L22800030000756195:N75200030012855151" into main am: a2b80663 am: ef5af1f0 am: 5a937d00 -s ours am skip reason: Merged-In I5bafa8a85d4f2169fcdef73e2d9f21534553ff72 with SHA-1 fc084ea8 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871221 Change-Id: I6ab8b64bdac2a5b036ea3ecb6a163dcee019b621 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] Revert "[nearby] Add disable logic" am: 11234fe8 am: fa7f79c5 am: 0dea1740 -s ours am skip reason: Merged-In Id664a6cba297674d8edeb0af700df1e96baaf70e with SHA-1 4ed63b18 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871220 Change-Id: Ifd8d3b839e0688e168d6e9b3a61ee31c68d99006 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Add disable logic am: 164969d6 am: 63d4d8ca am: a621e252 -s ours am skip reason: Merged-In I24ca7581d60afee484d14f66a411344ce132425a with SHA-1 3f5aea69 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871068 Change-Id: I92584daac355a08764c4fd7cc42f8de3685f29e5 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
am skip reason: Merged-In I11a03bd3bf40cd7cd6f0ac892f040c9eb3ce822c with SHA-1 2a4cadec is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871067 Change-Id: I40052e9f42f049d04f6c3c8e009495bda144ee1b Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Sync discoveryTimestamp field name am: 64e14583 am: 704ca5c7 am: 951e56b7 -s ours am skip reason: Merged-In I96e03660dbd49f361a436276d62473504f88d657 with SHA-1 d6acb065 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871219 Change-Id: I26cbde5879e7bf35291456db554cd53ef69b4788 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Enable BLE when init am: 6fca2667 am: d971d9a8 am: 1af396c5 -s ours am skip reason: Merged-In Ie380efbc452af51691daa1e96e04dd575801c3a9 with SHA-1 2a9323b1 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871066 Change-Id: Ib00ee2e54b3ff6b3c25dfca27d71e69bd7c12582 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Add logs to broadcaster am: d145497f am: dcb29423 am: 51926d3a -s ours am skip reason: Merged-In I9fd0009d21ac5193a2e7b715067c4956902cd2db with SHA-1 85f260c4 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871065 Change-Id: I153bfc2be8734ab5ebe195517601bdb0fdf771b1 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Add discoveryTimestamp field am: a34d7e89 am: 4c0aa8bf am: fdb35e01 -s ours am skip reason: Merged-In I2151cdeceec1a3180c79b0ea10adb6e5581f4845 with SHA-1 73089483 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871218 Change-Id: Ic1e4346ed370b250524a6bebb0788a35c99d5bb2 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Fix flakeness in the unit test am: df7db9c5 am: 5763fe8e am: 95c5ff24 -s ours am skip reason: Merged-In Id438f453893e4e4adbd341ba36c4a0e3d3dbcb4f with SHA-1 08356f82 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871063 Change-Id: Ica20e5c3fc0328d1700a04a61423e4a24339b995 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby][clean up] Remove useless legacy code am: 64cbadfa am: 222b9b43 am: 7c34e1f5 -s ours am skip reason: Merged-In I0ea54f77c66c01f02fbee9eb1e782a3a9ade6566 with SHA-1 d671163a is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871217 Change-Id: I75d67383b8f4987da4a486b4d720728446cf9764 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Fix the user-debug only test am: d9da74a9 am: c6c45034 am: 8b088b9e -s ours am skip reason: Merged-In I7644a8187c36c944b36f1b4eb741edf46d9b1ad2 with SHA-1 0f192c89 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871062 Change-Id: Id59745c5bd73b83506ebaf0646cb0f1dabae9542 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Catches NPE in ChreDiscoveryProvider am: e899d264 am: ebbfeee7 am: 2647c464 -s ours am skip reason: Merged-In I1ef411aea6db6d0c169aa08c303f4234c77baed9 with SHA-1 5d07eee4 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871061 Change-Id: I793da88bf421ba9fd11f7986765e9aa104b4e5ce Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
[automerger skipped] [nearby] Update README to add build env script am: a3eb71b6 am: 2408fda2 am: f1f8de49 -s ours am skip reason: Merged-In I43257c79d212ed24fb0cd69f363b25bceb098f01 with SHA-1 85afaab1 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871060 Change-Id: I8ae89f0a83ec93c57245394a286bb52c2a3c57bc Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871069 Change-Id: I653a27c8c481264f9eeee99d39561797610c17ed Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Merge changes from topic "cherrypicker-L22800030000756195:N75200030012855151" into main am: a2b80663 am: ef5af1f0 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871221 Change-Id: I444abc876909ae556df5e3399082379e208b22d7 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871220 Change-Id: Ic2fa7b8f776f9bb14d7a1b0058badb9cb457575c Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871068 Change-Id: I629a70fd6758f3c5a37210a28cb9ad0e08a3ff8f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871067 Change-Id: I90806c75d63b0a2c7d991ecb3df5b6f9e149752f Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871219 Change-Id: I75d8f9c9aad7f5feac6c90878c0d5545519a8460 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871066 Change-Id: I998bd875e03530ef36bce62b145b87028e9a3e89 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Xinyi Zhou authored
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2871065 Change-Id: I8d9e71c1cfad3d83ae3d9c0f0f2c657d3a5ec946 Signed-off-by:
Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-