summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/netlink_dumper.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2020-10-28 02:36:45 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-10-29 17:22:57 +0300
commit1e6f5dcc1b9ec9068f5d38331cec38b35498edf5 (patch)
tree955203bc8e6520b09ff61c6a568f2170eee5a1aa /tools/bpf/bpftool/netlink_dumper.h
parente5e1a4bc916d29958c3b587354293738fcb984d7 (diff)
downloadlinux-1e6f5dcc1b9ec9068f5d38331cec38b35498edf5.tar.xz
tools, bpftool: Avoid array index warnings.
The bpf_caps array is shorter without CAP_BPF, avoid out of bounds reads if this isn't defined. Working around this avoids -Wno-array-bounds with clang. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20201027233646.3434896-1-irogers@google.com
Diffstat (limited to 'tools/bpf/bpftool/netlink_dumper.h')
0 files changed, 0 insertions, 0 deletions