commit | 9e607f2e722604a57a2c1ec9a174fcc505d9c451 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Thu Nov 26 15:38:43 2015 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Sun Nov 29 11:55:16 2015 -0800 |
tree | 492d8203e184f1b3bd451db62c04c6d806e1dca9 | |
parent | 910b543dcce52290ce723758e1d9bb436188a26b [diff] |
{f, m}_bpf: check map attributes when fetching as pinned Make use of the new show_fdinfo() facility and verify that when a pinned map is being fetched that its basic attributes are the same as the map we declared from the ELF file. I.e. when placed into the globalns, collisions could occur. In such a case warn the user and bail out. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org>