Home
last modified time | relevance | path

Searched refs:BPF_LSM_CGROUP (Results 1 – 10 of 10) 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.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()
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.c3789 case BPF_LSM_CGROUP: in attach_type_to_prog_type()
3926 prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_prog_attach()
4040 case BPF_LSM_CGROUP: in bpf_prog_query()
5019 else if (prog->expected_attach_type == BPF_LSM_CGROUP) in link_create()
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.h1037 BPF_LSM_CGROUP, enumerator
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1037 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()