diff options
| author | Stanislav Fomichev <[email protected]> | 2019-05-15 03:38:49 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-05-15 23:32:19 +0000 |
| commit | 15ea164ef11abc0a2d3001ca40e5e509cd06091f (patch) | |
| tree | 07afe108034d75851b88732cafebbbfd2910c752 /tools/bpf/bpftool/prog.c | |
| parent | Merge branch 'lru-map-fix' (diff) | |
| download | kernel-15ea164ef11abc0a2d3001ca40e5e509cd06091f.tar.gz kernel-15ea164ef11abc0a2d3001ca40e5e509cd06091f.zip | |
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
