bpf, lsm: Add disabled BPF LSM hook list
authorXu Kuohai <xukuohai@huawei.com>
Fri, 19 Jul 2024 11:00:51 +0000 (19:00 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 20:09:18 +0000 (13:09 -0700)
commit21c7063f6d08ab9afa088584939791bee0c177e5
tree641ecdac8cd5f83ece58bc77f2d9573646ee7235
parente2854bc37344f40a47c6e04a222e65d2669e64dd
bpf, lsm: Add disabled BPF LSM hook list

Add a disabled hooks list for BPF LSM. progs being attached to the
listed hooks will be rejected by the verifier.

Suggested-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Link: https://lore.kernel.org/r/20240719110059.797546-2-xukuohai@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
kernel/bpf/bpf_lsm.c