selftests/bpf: Add test for lsm tail call
authorXu Kuohai <xukuohai@huawei.com>
Fri, 19 Jul 2024 11:00:58 +0000 (19:00 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 20:09:41 +0000 (13:09 -0700)
commitd463dd9c9aa24b17ccb8ed76bdd7768baf857b48
tree3b0c072d0fd2a5fc853bad7cfa65426c8ba1b1b6
parent2b23b6c0f03c94dbacff2abdfd45490eca9d7f6e
selftests/bpf: Add test for lsm tail call

Add test for lsm tail call to ensure tail call can only be used between
bpf lsm progs attached to the same hook.

Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Link: https://lore.kernel.org/r/20240719110059.797546-9-xukuohai@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_lsm.c
tools/testing/selftests/bpf/progs/lsm_tailcall.c [new file with mode: 0644]