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>
diff --git a/bpfloader/BpfLoader.cpp b/bpfloader/BpfLoader.cpp
index aab0a62..b8dd504 100644
--- a/bpfloader/BpfLoader.cpp
+++ b/bpfloader/BpfLoader.cpp
@@ -74,10 +74,8 @@
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 =