diff options
author | 2023-06-13 15:35:31 -0700 | |
---|---|---|
committer | 2023-06-19 14:04:04 +0200 | |
commit | 22db41226b679768df8f0a4ff5de8e58f625f45b (patch) | |
tree | b215fd889764d0a57a61d47b367cd6acf0eb696b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Move unprivileged checks into map_create() and bpf_prog_load() (diff) | |
download | wireguard-linux-22db41226b679768df8f0a4ff5de8e58f625f45b.tar.xz wireguard-linux-22db41226b679768df8f0a4ff5de8e58f625f45b.zip |
bpf: Inline map creation logic in map_create() function
Currently find_and_alloc_map() performs two separate functions: some
argument sanity checking and partial map creation workflow hanling.
Neither of those functions are self-sufficient and are augmented by
further checks and initialization logic in the caller (map_create()
function). So unify all the sanity checks, permission checks, and
creation and initialization logic in one linear piece of code in
map_create() instead. This also make it easier to further enhance
permission checks and keep them located in one place.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230613223533.3689589-3-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions