abort() if neither tethering flag is present am: 2ab4dbe471

Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/2160696

Change-Id: I8bbe036cd3fc378f66f242712e813c5febc125f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Maciej Żenczykowski 2022-07-21 06:33:52 +00:00 committed by Automerger Merge Worker
commit 549dfb3e06

View file

@ -74,10 +74,8 @@ bool isInProcessTethering() {
if (in) return true;
if (out) return false;
// Backup handling for older tethering modules, which don't have a flag,
// just assume it's not in process. We could potentially just abort()
// here, but what if there isn't even a tethering module installed?
return false;
ALOGE("FATAL: cannot determine if Tethering is in or out of process.");
abort();
}
constexpr unsigned long long kTetheringApexDomainBitmask =