aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2019-05-15 03:38:49 +0000
committerDaniel Borkmann <[email protected]>2019-05-15 23:32:19 +0000
commit15ea164ef11abc0a2d3001ca40e5e509cd06091f (patch)
tree07afe108034d75851b88732cafebbbfd2910c752 /tools/bpf/bpftool/prog.c
parentMerge branch 'lru-map-fix' (diff)
downloadkernel-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