Skip to content

Commit

Permalink
libbpf: mitigate libbpf_print_fn issues for tracee
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldtinoco committed Dec 12, 2022
1 parent aa91d8b commit 1161940
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libbpfgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ int libbpf_print_fn(enum libbpf_print_level level, // libbpf print level
return 0;
}

// BUG: https://github.com/aquasecurity/tracee/issues/2446
if (strstr(str, "failed to create kprobe") != NULL) {
if (strstr(str, "trace_check_map_func_compatibility") != NULL)
return 0;
}

// AttachCgroupLegacy() will first try AttachCgroup() and it might fail. This
// is not an error and is the best way of probing for eBPF cgroup attachment
// link existence.
Expand Down

0 comments on commit 1161940

Please sign in to comment.