aboutsummaryrefslogtreecommitdiff
path: root/lib/test_stackinit.c
diff options
context:
space:
mode:
authorKP Singh <[email protected]>2020-03-29 01:43:54 +0100
committerDaniel Borkmann <[email protected]>2020-03-30 01:35:11 +0200
commit1e092a0318292637cde832868016f37e942eed24 (patch)
treea1ba54bb8ab6571011f6f834e2516dee145c2221 /lib/test_stackinit.c
parent520b7aa00d8cd8e411ecc09f63a2acd90feb6d29 (diff)
tools/libbpf: Add support for BPF_PROG_TYPE_LSM
Since BPF_PROG_TYPE_LSM uses the same attaching mechanism as BPF_PROG_TYPE_TRACING, the common logic is refactored into a static function bpf_program__attach_btf_id. A new API call bpf_program__attach_lsm is still added to avoid userspace conflicts if this ever changes in the future. Signed-off-by: KP Singh <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Brendan Jackman <[email protected]> Reviewed-by: Florent Revest <[email protected]> Reviewed-by: James Morris <[email protected]> Acked-by: Yonghong Song <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions