Home
last modified time | relevance | path

Searched refs:BPF_LSM_CGROUP (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dlsm_cgroup.c25 ASSERT_OK(bpf_prog_query_opts(cgroup_fd, BPF_LSM_CGROUP, &p), "prog_query"); in query_prog_cnt()
41 ASSERT_OK(bpf_prog_query_opts(cgroup_fd, BPF_LSM_CGROUP, &p), "prog_query"); in query_prog_cnt()
108 err = bpf_prog_attach(alloc_prog_fd, cgroup_fd, BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional()
119 err = bpf_prog_attach(clone_prog_fd, cgroup_fd, BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional()
129 BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional()
137 BPF_LSM_CGROUP, &attach_opts); in test_lsm_cgroup_functional()
147 BPF_LSM_CGROUP, NULL); in test_lsm_cgroup_functional()
170 BPF_LSM_CGROUP, NULL); in test_lsm_cgroup_functional()
292 BPF_LSM_CGROUP), 0, "detach_create"); in test_lsm_cgroup_functional()
296 BPF_LSM_CGROUP), 0, "detach_alloc"); in test_lsm_cgroup_functional()
[all …]
/Linux-v6.6/kernel/bpf/
Dbpf_lsm.c201 if (prog->expected_attach_type == BPF_LSM_CGROUP) { in bpf_lsm_func_proto()
232 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
242 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
Dcgroup.c144 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find()
186 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find()
295 if (pl->prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release()
300 if (pl->link->link.prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release()
687 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_attach()
698 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach()
708 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach()
1000 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_detach()
1037 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_query()
1203 if (cg_link->type == BPF_LSM_CGROUP) in bpf_cgroup_link_release()
Dtrampoline.c1013 prog->expected_attach_type == BPF_LSM_CGROUP) in bpf_trampoline_enter()
1028 prog->expected_attach_type == BPF_LSM_CGROUP) in bpf_trampoline_exit()
Dsyscall.c3715 case BPF_LSM_CGROUP: in attach_type_to_prog_type()
3847 prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_prog_attach()
3961 case BPF_LSM_CGROUP: in bpf_prog_query()
4940 else if (prog->expected_attach_type == BPF_LSM_CGROUP) in link_create()
Dverifier.c9704 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call()
14492 if (prog->expected_attach_type == BPF_LSM_CGROUP) in check_return_code()
14596 if (env->prog->expected_attach_type != BPF_LSM_CGROUP) { in check_return_code()
14629 if (prog->expected_attach_type == BPF_LSM_CGROUP && in check_return_code()
19416 case BPF_LSM_CGROUP: in bpf_check_attach_target()
Dbtf.c5965 case BPF_LSM_CGROUP: in btf_ctx_access()
/Linux-v6.6/Documentation/bpf/libbpf/
Dprogram_types.rst100 | ``BPF_PROG_TYPE_LSM`` | ``BPF_LSM_CGROUP`` | ``lsm_cgroup…
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h1037 BPF_LSM_CGROUP, enumerator
/Linux-v6.6/include/uapi/linux/
Dbpf.h1037 BPF_LSM_CGROUP, enumerator
/Linux-v6.6/tools/lib/bpf/
Dlibbpf.c109 [BPF_LSM_CGROUP] = "lsm_cgroup",
8811 SEC_DEF("lsm_cgroup+", LSM, BPF_LSM_CGROUP, SEC_ATTACH_BTF),
9251 case BPF_LSM_CGROUP: in btf_get_kernel_prefix_kind()