Skip to content
Snippets Groups Projects
Commit 7f6a4267 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

netbpfload: V+ x86 require 64-bit kernel

For reasoning see:
  https://android-review.googlesource.com/c/platform/system/netd/+/2966803



Test: TreeHugger
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: If479b0443a64e0bf98ca89016d42ca37e231c576
parent 2e29f6dd
No related branches found
No related tags found
No related merge requests found
......@@ -301,6 +301,11 @@ int main(int argc, char** argv, char * const envp[]) {
return 1;
}
if (isAtLeastV && android::bpf::isX86() && !android::bpf::isKernel64Bit()) {
ALOGE("Android V requires X86 kernel to be 64-bit.");
return 1;
}
if (android::bpf::isUserspace32bit() && android::bpf::isAtLeastKernelVersion(6, 2, 0)) {
/* Android 14/U should only launch on 64-bit kernels
* T launches on 5.10/5.15
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment