diff options
author | 2025-03-17 17:40:39 +0000 | |
---|---|---|
committer | 2025-03-17 13:45:12 -0700 | |
commit | a024843d92cca491034dac648bcfec967199a4a4 (patch) | |
tree | 62436d27fd49365a4db2b9fa92065b6aabbca28c /scripts/gdb/linux/pgtable.py | |
parent | libbpf: Pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_ID (diff) | |
download | wireguard-linux-a024843d92cca491034dac648bcfec967199a4a4.tar.xz wireguard-linux-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 <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20250317174039.161275-5-mykyta.yatsenko5@gmail.com
Diffstat (limited to 'scripts/gdb/linux/pgtable.py')
0 files changed, 0 insertions, 0 deletions