bpftool: bpf_link_get_from_fd support for LSM programs in lskel
authorKP Singh <kpsingh@kernel.org>
Mon, 9 May 2022 21:49:05 +0000 (21:49 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 10 May 2022 17:42:08 +0000 (10:42 -0700)
commitbd2331b3757f5b2ab4aafc591b55fa2a592abf7c
tree48dde41cb00f9f949fbc4647c7b25285631c7e09
parenta82ebb093fc7bdd88f8df17b2fa303d7535fa43b
bpftool: bpf_link_get_from_fd support for LSM programs in lskel

bpf_link_get_from_fd currently returns a NULL fd for LSM programs.
LSM programs are similar to tracing programs and can also use
skel_raw_tracepoint_open.

Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220509214905.3754984-1-kpsingh@kernel.org
tools/bpf/bpftool/gen.c