Files
linux/kernel/bpf
Andrii Nakryiko f568a3d49a bpf,lsm: Add BPF token LSM hooks
Wire up bpf_token_create and bpf_token_free LSM hooks, which allow to
allocate LSM security blob (we add `void *security` field to struct
bpf_token for that), but also control who can instantiate BPF token.
This follows existing pattern for BPF map and BPF prog.

Also add security_bpf_token_allow_cmd() and security_bpf_token_capable()
LSM hooks that allow LSM implementation to control and negate (if
necessary) BPF token's delegation of a specific bpf_cmd and capability,
respectively.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Paul Moore <paul@paul-moore.com>
Link: https://lore.kernel.org/bpf/20240124022127.2379740-12-andrii@kernel.org
2024-01-24 16:21:01 -08:00
..
2024-01-24 16:21:01 -08:00
2024-01-23 17:12:52 -08:00
2023-12-15 16:25:55 -08:00
2023-12-06 17:17:20 -08:00
2022-05-10 11:20:45 -07:00
2024-01-24 16:21:01 -08:00
2023-10-23 15:01:53 -07:00
2024-01-24 16:21:01 -08:00
2023-12-06 17:17:20 -08:00