Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
/openbmc/linux/kernel/bpf/
H A 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()
H A Dcgroup.c161 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()
704 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_attach()
715 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach()
725 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach()
1017 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_detach()
1054 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_query()
1220 if (cg_link->type == BPF_LSM_CGROUP) in bpf_cgroup_link_release()
H A 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()
H A Dsyscall.c3814 case BPF_LSM_CGROUP: in attach_type_to_prog_type()
3951 prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_prog_attach()
4065 case BPF_LSM_CGROUP: in bpf_prog_query()
5044 else if (prog->expected_attach_type == BPF_LSM_CGROUP) in link_create()
H A Dverifier.c10131 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call()
14943 if (prog->expected_attach_type == BPF_LSM_CGROUP) in check_return_code()
15047 if (env->prog->expected_attach_type != BPF_LSM_CGROUP) { in check_return_code()
15080 if (prog->expected_attach_type == BPF_LSM_CGROUP && in check_return_code()
19972 case BPF_LSM_CGROUP: in bpf_check_attach_target()
H A Dbtf.c5965 case BPF_LSM_CGROUP: in btf_ctx_access()
/openbmc/linux/Documentation/bpf/libbpf/
H A Dprogram_types.rst100 | ``BPF_PROG_TYPE_LSM`` | ``BPF_LSM_CGROUP`` | ``lsm_cgroup…
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1054 BPF_LSM_CGROUP, enumerator
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1054 BPF_LSM_CGROUP, enumerator
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.c110 [BPF_LSM_CGROUP] = "lsm_cgroup",
8817 SEC_DEF("lsm_cgroup+", LSM, BPF_LSM_CGROUP, SEC_ATTACH_BTF),
9257 case BPF_LSM_CGROUP: in btf_get_kernel_prefix_kind()