0
0
mirror of https://github.com/ponces/treble_aosp.git synced 2025-04-22 17:15:47 +00:00
Files
treble_aosp/patches/trebledroid/platform_packages_modules_Connectivity/0005-netd-Remove-4.14-kernel-restrictions.patch
2025-04-01 00:51:53 +00:00

34 lines
1.3 KiB
Diff

From aaa7f137b0c2ed0d7336a2f79c5b7cf28ed3cd7c Mon Sep 17 00:00:00 2001
From: Michael Bestas <mkbestas@gmail.com>
Date: Fri, 15 Mar 2024 14:59:21 +0200
Subject: [PATCH 5/8] netd: Remove <4.14 kernel restrictions
Change-Id: I4d4abbacd6b9589260de06663e2143bc37d8ea0f
---
bpf/netd/BpfHandler.cpp | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/bpf/netd/BpfHandler.cpp b/bpf/netd/BpfHandler.cpp
index 7091347fbf..5954531b12 100644
--- a/bpf/netd/BpfHandler.cpp
+++ b/bpf/netd/BpfHandler.cpp
@@ -76,15 +76,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");
- }
// U mandates this mount point (though it should also be the case on T)
if (modules::sdklevel::IsAtLeastU() && !!strcmp(cg2_path, "/sys/fs/cgroup")) {
--
2.43.0