Skip to content

Commit

Permalink
tetragon: Allow to override execve tail calls
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
  • Loading branch information
olsajiri committed Aug 21, 2024
1 parent 2d3a4d0 commit 699b282
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bpf/process/bpf_execve_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@

#include "policy_filter.h"

char _license[] __attribute__((section("license"), used)) = "Dual BSD/GPL";

#ifndef OVERRIDE_TAILCALL
int execve_rate(void *ctx);
int execve_send(void *ctx);

char _license[] __attribute__((section("license"), used)) = "Dual BSD/GPL";

struct {
__uint(type, BPF_MAP_TYPE_PROG_ARRAY);
__uint(max_entries, 2);
Expand All @@ -29,6 +30,7 @@ struct {
[1] = (void *)&execve_send,
},
};
#endif

#include "data_event.h"

Expand Down

0 comments on commit 699b282

Please sign in to comment.