bpf: allow . char as part of the object name
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 9 Apr 2019 21:20:07 +0000 (23:20 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Apr 2019 00:05:46 +0000 (17:05 -0700)
commit3e0ddc4f3ff1436970e96e76f3df3c3b5f5173b6
treeb63d2fbe0bbbe27f537a8119ad83f09a715227e6
parent87df15de441bd4add7876ef584da8cabdd9a042a
bpf: allow . char as part of the object name

Trivial addition to allow '.' aside from '_' as "special" characters
in the object name. Used to allow for substrings in maps from loader
side such as ".bss", ".data", ".rodata", but could also be useful for
other purposes.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/syscall.c