From 775b5018a5c15bcb0a6f10f0e3c986614dcc5b26 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Fri, 20 Oct 2023 08:03:47 +0000 Subject: [PATCH] tetragon: Switch off kprobe multi via spec in security_ test We can now localy disable kprobe multi, let's use it for security_ override test, which won't work with kprobe multi. Signed-off-by: Jiri Olsa --- pkg/sensors/tracing/kprobe_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/sensors/tracing/kprobe_test.go b/pkg/sensors/tracing/kprobe_test.go index 8f9fbb1f08a..38b51be6258 100644 --- a/pkg/sensors/tracing/kprobe_test.go +++ b/pkg/sensors/tracing/kprobe_test.go @@ -2212,10 +2212,6 @@ func TestKprobeOverrideSecurity(t *testing.T) { t.Skip("skipping fmod_ret support is not available") } - if !option.Config.DisableKprobeMulti && bpf.HasKprobeMulti() { - t.Skip("skipping fmod_ret does not work with kprobe multi") - } - pidStr := strconv.Itoa(int(observertesthelper.GetMyPid())) file, err := os.CreateTemp(t.TempDir(), "kprobe-override-") @@ -2230,6 +2226,9 @@ kind: TracingPolicy metadata: name: "sys-openat-override" spec: + options: + - name: "disable-kprobe-multi" + value: "1" kprobes: - call: "security_file_open" syscall: false