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: Maciej Żenczykowski <maze@google.com> Change-Id: If479b0443a64e0bf98ca89016d42ca37e231c576
This commit is contained in:
parent
2e29f6dd42
commit
7f6a42672d
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue