diff options
author | Mykyta Yatsenko <yatsenko@meta.com> | 2025-03-17 20:40:39 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-03-17 23:45:12 +0300 |
commit | a024843d92cca491034dac648bcfec967199a4a4 (patch) | |
tree | 62436d27fd49365a4db2b9fa92065b6aabbca28c /rust/helpers/helpers.c | |
parent | 974ef9f0d23edc1a802691c585b84514b414a96d (diff) | |
download | linux-a024843d92cca491034dac648bcfec967199a4a4.tar.xz |
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 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions