diff options
| author | Mykyta Yatsenko <[email protected]> | 2025-03-17 17:40:39 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2025-03-17 20:45:12 +0000 |
| commit | a024843d92cca491034dac648bcfec967199a4a4 (patch) | |
| tree | 62436d27fd49365a4db2b9fa92065b6aabbca28c /tools/bpf/bpftool/prog.c | |
| parent | libbpf: Pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_ID (diff) | |
| download | kernel-a024843d92cca491034dac648bcfec967199a4a4.tar.gz kernel-a024843d92cca491034dac648bcfec967199a4a4.zip | |
selftests/bpf: Test freplace from user namespace
Add selftests to verify that it is possible to load freplace program
from user namespace if BPF token is initialized by bpf_object__prepare
before calling bpf_program__set_attach_target.
Negative test is added as well.
Modified type of the priv_prog to xdp, as kprobe did not work on aarch64
and s390x.
Signed-off-by: Mykyta Yatsenko <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
