aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-01-26 22:09:44 +0000
committerDaniel Borkmann <[email protected]>2024-01-29 15:17:44 +0000
commitad57654053805bf9a62602aaec74cc78edb6f235 (patch)
treed6f66e87082111583b271b5dff78a22745acb1c4 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c
parentbpftool: Be more portable by using POSIX's basename() (diff)
downloadkernel-ad57654053805bf9a62602aaec74cc78edb6f235.tar.gz
kernel-ad57654053805bf9a62602aaec74cc78edb6f235.zip
libbpf: Fix faccessat() usage on Android
Android implementation of libc errors out with -EINVAL in faccessat() if passed AT_EACCESS ([0]), this leads to ridiculous issue with libbpf refusing to load /sys/kernel/btf/vmlinux on Androids ([1]). Fix by detecting Android and redefining AT_EACCESS to 0, it's equivalent on Android. [0] https://android.googlesource.com/platform/bionic/+/refs/heads/android13-release/libc/bionic/faccessat.cpp#50 [1] https://github.com/libbpf/libbpf-bootstrap/issues/250#issuecomment-1911324250 Fixes: 6a4ab8869d0b ("libbpf: Fix the case of running as non-root with capabilities") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions