Skip to content

Commit

Permalink
Skip TestLinuxBinprmExtractPath for old kernels
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Fedotov <[email protected]>
  • Loading branch information
anfedotoff authored and kevsecurity committed Jul 3, 2024
1 parent b6118fc commit 857205e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sensors/tracing/kprobe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5989,6 +5989,9 @@ spec:
}

func TestLinuxBinprmExtractPath(t *testing.T) {
if !kernels.EnableLargeProgs() {
t.Skip("Older kernels do not support matchArgs with linux_binprm")
}
testutils.CaptureLog(t, logger.GetLogger().(*logrus.Logger))
ctx, cancel := context.WithTimeout(context.Background(), tus.Conf().CmdWaitTime)
defer cancel()
Expand Down

0 comments on commit 857205e

Please sign in to comment.