From 230f5fa86e12a7911575afbeb7319d39bf5e2c92 Mon Sep 17 00:00:00 2001 From: Sylvain Afchain Date: Thu, 21 Nov 2024 11:10:10 +0100 Subject: [PATCH] skip 4.14 --- pkg/security/probe/probe_ebpf.go | 2 +- pkg/security/tests/network_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/security/probe/probe_ebpf.go b/pkg/security/probe/probe_ebpf.go index 43041eda53adc5..1052586ed683be 100644 --- a/pkg/security/probe/probe_ebpf.go +++ b/pkg/security/probe/probe_ebpf.go @@ -200,7 +200,7 @@ func (p *EBPFProbe) selectFentryMode() { } func (p *EBPFProbe) isNetworkNotSupported() bool { - return p.kernelVersion.IsRH7Kernel() || (p.kernelVersion.IsAmazonLinuxKernel() && p.kernelVersion.Code < kernel.Kernel4_14) + return p.kernelVersion.IsRH7Kernel() || (p.kernelVersion.IsAmazonLinuxKernel() && p.kernelVersion.Code < kernel.Kernel4_15) } func (p *EBPFProbe) sanityChecks() error { diff --git a/pkg/security/tests/network_test.go b/pkg/security/tests/network_test.go index abb408c01f5712..2790d101709ae6 100644 --- a/pkg/security/tests/network_test.go +++ b/pkg/security/tests/network_test.go @@ -82,7 +82,7 @@ func TestRawPacket(t *testing.T) { checkKernelCompatibility(t, "RHEL, SLES, SUSE and Oracle kernels", func(kv *kernel.Version) bool { // TODO: Oracle because we are missing offsets // OpenSUSE distributions are missing the dummy kernel module - return kv.IsRH7Kernel() || kv.IsOracleUEKKernel() || kv.IsSLESKernel() || kv.IsOpenSUSELeapKernel() || (kv.IsAmazonLinuxKernel() && kv.Code < kernel.Kernel4_14) + return kv.IsRH7Kernel() || kv.IsOracleUEKKernel() || kv.IsSLESKernel() || kv.IsOpenSUSELeapKernel() || (kv.IsAmazonLinuxKernel() && kv.Code < kernel.Kernel4_15) }) if testEnvironment != DockerEnvironment && !env.IsContainerized() {