diff options
author | Quentin Monnet <quentin@isovalent.com> | 2023-07-07 10:54:24 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-07-10 15:29:20 -0700 |
commit | 44ba7b30e84fb40da2295e85a6d209e199fdc977 (patch) | |
tree | da2a7c18986fd6c0bdb576626c74794dcc31ca1c /security/selinux/hooks.c | |
parent | 67a43462ee2405c94e985a747bdcb8e3a0d66203 (diff) |
bpftool: Use a local copy of BPF_LINK_TYPE_PERF_EVENT in pid_iter.bpf.c
In order to allow the BPF program in bpftool's pid_iter.bpf.c to compile
correctly on hosts where vmlinux.h does not define
BPF_LINK_TYPE_PERF_EVENT (running kernel versions lower than 5.15, for
example), define and use a local copy of the enum value. This requires
LLVM 12 or newer to build the BPF program.
Fixes: cbdaf71f7e65 ("bpftool: Add bpf_cookie to link output")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230707095425.168126-4-quentin@isovalent.com
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions