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