libbpf: check map name retrieved from ELF
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 May 2019 17:36:06 +0000 (10:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 23:23:35 +0000 (01:23 +0200)
commitc51829bb6e921337014d9ac3712b0b7e8cae9f3d
tree1a9122446bc71afbd93f72347f511212a800621c
parent12ef5634a855eb642b4d28781526fbd830aa7f7a
libbpf: check map name retrieved from ELF

Validate there was no error retrieving symbol name corresponding to
a BPF map.

Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c