mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-24 09:46:19 +00:00
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From 897553acb90f9024412f68cb595005cc70f7a247 Mon Sep 17 00:00:00 2001
|
|
From: Michael Bestas <mkbestas@gmail.com>
|
|
Date: Fri, 15 Mar 2024 14:59:21 +0200
|
|
Subject: [PATCH 12/13] netd: Remove <4.14 kernel restrictions
|
|
|
|
Change-Id: I4d4abbacd6b9589260de06663e2143bc37d8ea0f
|
|
---
|
|
netd/BpfHandler.cpp | 10 ----------
|
|
1 file changed, 10 deletions(-)
|
|
|
|
diff --git a/netd/BpfHandler.cpp b/netd/BpfHandler.cpp
|
|
index aaaa41c6d7..b8333526d8 100644
|
|
--- a/netd/BpfHandler.cpp
|
|
+++ b/netd/BpfHandler.cpp
|
|
@@ -75,16 +75,6 @@ static Status initPrograms(const char* cg2_path) {
|
|
// This code was mainlined in T, so this should be trivially satisfied.
|
|
if (!modules::sdklevel::IsAtLeastT()) return Status("S- platform is unsupported");
|
|
|
|
- // S requires eBPF support which was only added in 4.9, so this should be satisfied.
|
|
- if (!bpf::isAtLeastKernelVersion(4, 9, 0)) {
|
|
- return Status("kernel version < 4.9.0 is unsupported");
|
|
- }
|
|
-
|
|
- // U bumps the kernel requirement up to 4.14
|
|
- if (modules::sdklevel::IsAtLeastU() && !bpf::isAtLeastKernelVersion(4, 14, 0)) {
|
|
- return Status("U+ platform with kernel version < 4.14.0 is unsupported");
|
|
- }
|
|
-
|
|
if (modules::sdklevel::IsAtLeastV()) {
|
|
// V bumps the kernel requirement up to 4.19
|
|
// see also: //system/netd/tests/kernel_test.cpp TestKernel419
|
|
--
|
|
2.25.1
|
|
|