aboutsummaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorGravatar Stanislav Fomichev <sdf@google.com> 2022-06-28 10:43:08 -0700
committerGravatar Alexei Starovoitov <ast@kernel.org> 2022-06-29 13:21:52 -0700
commitb79c9fc9551b45953a94abf550b7bd3b00e3a0f9 (patch)
tree11a44adbd2dc933ed1052ae3c195f0a20110f3a6 /virt
parentbpf: minimize number of allocated lsm slots per program (diff)
downloadlinux-b79c9fc9551b45953a94abf550b7bd3b00e3a0f9.tar.gz
linux-b79c9fc9551b45953a94abf550b7bd3b00e3a0f9.tar.bz2
linux-b79c9fc9551b45953a94abf550b7bd3b00e3a0f9.zip
bpf: implement BPF_PROG_QUERY for BPF_LSM_CGROUP
We have two options: 1. Treat all BPF_LSM_CGROUP the same, regardless of attach_btf_id 2. Treat BPF_LSM_CGROUP+attach_btf_id as a separate hook point I was doing (2) in the original patch, but switching to (1) here: * bpf_prog_query returns all attached BPF_LSM_CGROUP programs regardless of attach_btf_id * attach_btf_id is exported via bpf_prog_info Reviewed-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20220628174314.1216643-6-sdf@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions