]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Do not require executable permission for shared libraries
authorHengqi Chen <hengqi.chen@gmail.com>
Sat, 6 Aug 2022 10:20:21 +0000 (18:20 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 8 Aug 2022 22:07:40 +0000 (15:07 -0700)
commitea7b23f5161150f044fa235ef6d6d6fe87c9526b
treeb1bd785608fa33530b9e0ea6f85b0bb5cbd24ced
parent10f23ff51f58551035b0bed91bf7e0a9d57694fc
libbpf: Do not require executable permission for shared libraries

Currently, resolve_full_path() requires executable permission for both
programs and shared libraries. This causes failures on distos like Debian
since the shared libraries are not installed executable and Linux is not
requiring shared libraries to have executable permissions. Let's remove
executable permission check for shared libraries.

Reported-by: Goro Fuji <goro@fastly.com>
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220806102021.3867130-1-hengqi.chen@gmail.com
tools/lib/bpf/libbpf.c