diff options
author | Andrii Nakryiko <[email protected]> | 2023-05-22 16:29:14 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-05-23 16:56:37 +0200 |
commit | e7d85427ef898afe66c4c1b7e06e5659cec6b640 (patch) | |
tree | b01e23b47266421525dd69c2bc2fce34c35ac448 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | f46392ee3dec24066e5fb260d9bd497b4cd4d191 (diff) |
bpf: Validate BPF object in BPF_OBJ_PIN before calling LSM
Do a sanity check whether provided file-to-be-pinned is actually a BPF
object (prog, map, btf) before calling security_path_mknod LSM hook. If
it's not, LSM hook doesn't have to be triggered, as the operation has no
chance of succeeding anyways.
Suggested-by: Christian Brauner <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions