abort() if neither tethering flag is present
Bug: 190523685
Bug: 236925089
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I846aa9c823760909c24db805e044866c29108b79
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 =