Searched refs:BPF_LSM_CGROUP (Results 1 – 12 of 12) sorted by relevance
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | lsm_cgroup.c | 21 ASSERT_OK(bpf_prog_query_opts(cgroup_fd, BPF_LSM_CGROUP, &p), "prog_query"); in query_prog_cnt() 37 ASSERT_OK(bpf_prog_query_opts(cgroup_fd, BPF_LSM_CGROUP, &p), "prog_query"); in query_prog_cnt() 104 err = bpf_prog_attach(alloc_prog_fd, cgroup_fd, BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional() 115 err = bpf_prog_attach(clone_prog_fd, cgroup_fd, BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional() 125 BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional() 133 BPF_LSM_CGROUP, &attach_opts); in test_lsm_cgroup_functional() 143 BPF_LSM_CGROUP, NULL); in test_lsm_cgroup_functional() 166 BPF_LSM_CGROUP, NULL); in test_lsm_cgroup_functional() 288 BPF_LSM_CGROUP), 0, "detach_create"); in test_lsm_cgroup_functional() 292 BPF_LSM_CGROUP), 0, "detach_alloc"); in test_lsm_cgroup_functional() [all …]
|
| /linux-6.15/kernel/bpf/ |
| H A D | bpf_lsm.c | 227 if (prog->expected_attach_type == BPF_LSM_CGROUP) { in bpf_lsm_func_proto() 258 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto() 268 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
|
| H A D | cgroup.c | 161 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find() 203 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find() 312 if (pl->prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release() 317 if (pl->link->link.prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release() 721 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_attach() 732 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach() 742 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach() 1034 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_detach() 1071 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_query() 1237 if (cg_link->type == BPF_LSM_CGROUP) in bpf_cgroup_link_release()
|
| H A D | trampoline.c | 1067 prog->expected_attach_type == BPF_LSM_CGROUP) in bpf_trampoline_enter() 1082 prog->expected_attach_type == BPF_LSM_CGROUP) in bpf_trampoline_exit()
|
| H A D | syscall.c | 4103 case BPF_LSM_CGROUP: in attach_type_to_prog_type() 4253 prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_prog_attach() 4380 case BPF_LSM_CGROUP: in bpf_prog_query() 5400 else if (prog->expected_attach_type == BPF_LSM_CGROUP) in link_create()
|
| H A D | verifier.c | 11453 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call() 16821 if (prog->expected_attach_type == BPF_LSM_CGROUP) in check_return_code() 16944 if (env->prog->expected_attach_type != BPF_LSM_CGROUP) { in check_return_code() 16990 prog->expected_attach_type == BPF_LSM_CGROUP && in check_return_code() 23265 case BPF_LSM_CGROUP: in bpf_check_attach_target()
|
| H A D | btf.c | 6698 case BPF_LSM_CGROUP: in btf_ctx_access()
|
| /linux-6.15/Documentation/bpf/libbpf/ |
| H A D | program_types.rst | 110 | ``BPF_PROG_TYPE_LSM`` | ``BPF_LSM_CGROUP`` | ``lsm_cgroup…
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A D | cgroup.c | 51 BPF_LSM_CGROUP
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | bpf.h | 1108 BPF_LSM_CGROUP, enumerator
|
| /linux-6.15/include/uapi/linux/ |
| H A D | bpf.h | 1108 BPF_LSM_CGROUP, enumerator
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | libbpf.c | 118 [BPF_LSM_CGROUP] = "lsm_cgroup", 9528 SEC_DEF("lsm_cgroup+", LSM, BPF_LSM_CGROUP, SEC_ATTACH_BTF), 9965 case BPF_LSM_CGROUP: in btf_get_kernel_prefix_kind()
|