summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorEelco Chaudron <echaudro@redhat.com>2020-05-12 12:04:40 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-05-13 11:29:54 +0300
commitfd9eef1a132d1974405c3ebf9d5688ec5c51da94 (patch)
tree0843535343ed67d8743ad0df18e895d77f801209 /tools/testing
parent309b81f0fdc4209d998bc63f0da52c2e96340d4e (diff)
downloadlinux-fd9eef1a132d1974405c3ebf9d5688ec5c51da94.tar.xz
libbpf: Fix probe code to return EPERM if encountered
When the probe code was failing for any reason ENOTSUP was returned, even if this was due to not having enough lock space. This patch fixes this by returning EPERM to the user application, so it can respond and increase the RLIMIT_MEMLOCK size. Signed-off-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/158927424896.2342.10402475603585742943.stgit@ebuild
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions