Home
last modified time | relevance | path

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

/Linux-v6.1/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()
107 err = bpf_prog_attach(alloc_prog_fd, cgroup_fd, BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional()
118 err = bpf_prog_attach(clone_prog_fd, cgroup_fd, BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional()
128 BPF_LSM_CGROUP, 0); in test_lsm_cgroup_functional()
136 BPF_LSM_CGROUP, &attach_opts); in test_lsm_cgroup_functional()
146 BPF_LSM_CGROUP, NULL); in test_lsm_cgroup_functional()
169 BPF_LSM_CGROUP, NULL); in test_lsm_cgroup_functional()
282 BPF_LSM_CGROUP), 0, "detach_create"); in test_lsm_cgroup_functional()
286 BPF_LSM_CGROUP), 0, "detach_alloc"); in test_lsm_cgroup_functional()
[all …]
/Linux-v6.1/kernel/bpf/
Dbpf_lsm.c200 if (prog->expected_attach_type == BPF_LSM_CGROUP) { in bpf_lsm_func_proto()
231 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
241 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()
999 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_detach()
1036 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_query()
1202 if (cg_link->type == BPF_LSM_CGROUP) in bpf_cgroup_link_release()
Dsyscall.c3449 case BPF_LSM_CGROUP: in attach_type_to_prog_type()
3506 prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_prog_attach()
3589 case BPF_LSM_CGROUP: in bpf_prog_query()
4588 else if (prog->expected_attach_type == BPF_LSM_CGROUP) in link_create()
Dverifier.c7412 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call()
10534 if (prog->expected_attach_type == BPF_LSM_CGROUP) in check_return_code()
10638 if (env->prog->expected_attach_type != BPF_LSM_CGROUP) { in check_return_code()
10668 if (prog->expected_attach_type == BPF_LSM_CGROUP && in check_return_code()
14982 case BPF_LSM_CGROUP: in bpf_check_attach_target()
Dbtf.c5398 case BPF_LSM_CGROUP: in btf_ctx_access()
/Linux-v6.1/tools/include/uapi/linux/
Dbpf.h1027 BPF_LSM_CGROUP, enumerator
/Linux-v6.1/include/uapi/linux/
Dbpf.h1027 BPF_LSM_CGROUP, enumerator
/Linux-v6.1/arch/x86/net/
Dbpf_jit_comp.c1844 } else if (p->expected_attach_type == BPF_LSM_CGROUP) { in invoke_bpf_prog()
/Linux-v6.1/tools/lib/bpf/
Dlibbpf.c109 [BPF_LSM_CGROUP] = "lsm_cgroup",
8495 SEC_DEF("lsm_cgroup+", LSM, BPF_LSM_CGROUP, SEC_ATTACH_BTF),
8933 case BPF_LSM_CGROUP: in btf_get_kernel_prefix_kind()