diff --git a/cmd/system-probe/common/common_nix.go b/cmd/system-probe/common/common_nix.go index 618232e87471f6..0cae22e880dd79 100644 --- a/cmd/system-probe/common/common_nix.go +++ b/cmd/system-probe/common/common_nix.go @@ -27,7 +27,7 @@ func DisablePESUnsupportedKernel(isEnabled bool) bool { log.Errorf("unable to detect the kernel version: %s", err) return false } - if !kernelVersion.IsRH7Kernel() && !kernelVersion.IsRH8Kernel() && kernelVersion.Code < ebpfkernel.Kernel4_15 { + if kernelVersion.IsRH7Kernel() || (!kernelVersion.IsRH8Kernel() && kernelVersion.Code < ebpfkernel.Kernel4_15) { log.Warn("disabling process event monitoring as it is not supported for this kernel version") return true }