diff options
author | Quentin Monnet <quentin@isovalent.com> | 2020-07-24 10:06:18 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-07-27 22:40:54 +0200 |
commit | 9a97c9d2af5ca798377342debf7f0f44281d050e (patch) | |
tree | 676c7e2784a7ac3ea2d03491420b6171ae717199 /tools/bpf/bpftool/prog.c | |
parent | 70cfab1d871c771bd1963dd898f4f9b2731590c2 (diff) | |
download | linux-9a97c9d2af5ca798377342debf7f0f44281d050e.tar.bz2 |
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
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
-rw-r--r-- | tools/bpf/bpftool/prog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index 3e6ecc6332e2..158995d853b0 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c @@ -59,6 +59,7 @@ const char * const prog_type_name[] = { [BPF_PROG_TYPE_TRACING] = "tracing", [BPF_PROG_TYPE_STRUCT_OPS] = "struct_ops", [BPF_PROG_TYPE_EXT] = "ext", + [BPF_PROG_TYPE_LSM] = "lsm", [BPF_PROG_TYPE_SK_LOOKUP] = "sk_lookup", }; |