commit | 15ea164ef11abc0a2d3001ca40e5e509cd06091f | [log] [tgz] |
---|---|---|
author | Stanislav Fomichev <sdf@google.com> | Tue May 14 20:38:49 2019 -0700 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu May 16 01:32:19 2019 +0200 |
tree | 07afe108034d75851b88732cafebbbfd2910c752 | |
parent | 5db17c96771ffa735f5cdfbd9b44f52f319f2637 [diff] |
libbpf: don't fail when feature probing fails Otherwise libbpf is unusable from unprivileged process with kernel.kernel.unprivileged_bpf_disabled=1. All I get is EPERM from the probes, even if I just want to open an ELF object and look at what progs/maps it has. Instead of dying on probes, let's just pr_debug the error and try to continue. Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>