diff --git a/pkg/bpf/detect.go b/pkg/bpf/detect.go index 9f862ec16e3..22e21241b70 100644 --- a/pkg/bpf/detect.go +++ b/pkg/bpf/detect.go @@ -232,8 +232,9 @@ func HasLSMPrograms() bool { return false } if strings.Contains(string(b), "bpf") { - return true + return features.HaveProgramType(ebpf.RawTracepoint) == nil } + return false }