tools, bpftool: Add LSM type to array of prog names
authorQuentin Monnet <quentin@isovalent.com>
Fri, 24 Jul 2020 09:06:18 +0000 (10:06 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 27 Jul 2020 20:40:54 +0000 (22:40 +0200)
commit9a97c9d2af5ca798377342debf7f0f44281d050e
tree676c7e2784a7ac3ea2d03491420b6171ae717199
parent70cfab1d871c771bd1963dd898f4f9b2731590c2
tools, bpftool: Add LSM type to array of prog names

Assign "lsm" as a printed name for BPF_PROG_TYPE_LSM in bpftool, so that
it can use it when listing programs loaded on the system or when probing
features.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200724090618.16378-3-quentin@isovalent.com
tools/bpf/bpftool/prog.c