Home
last modified time | relevance | path

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

/linux/kernel/bpf/
H A Dbpf_lsm.c232 if (prog->expected_attach_type == BPF_LSM_CGROUP) { in bpf_lsm_func_proto()
263 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
273 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
H A Dcgroup.c189 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find()
236 if (attach_type != BPF_LSM_CGROUP) in bpf_cgroup_atype_find()
345 if (pl->prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release()
350 if (pl->link->link.prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release()
894 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_attach()
906 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach()
916 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_attach()
1252 if (type == BPF_LSM_CGROUP) in __cgroup_bpf_detach()
1290 if (type == BPF_LSM_CGROUP) { in __cgroup_bpf_query()
1462 if (link->attach_type == BPF_LSM_CGROUP) in bpf_cgroup_link_release()
H A Dtrampoline.c1398 /* Runtime stats are exported via actual BPF_LSM_CGROUP in __bpf_prog_enter_sleepable()
1508 prog->expected_attach_type == BPF_LSM_CGROUP) in arch_protect_bpf_trampoline()
1523 prog->expected_attach_type == BPF_LSM_CGROUP)
H A Dsyscall.c4479 case BPF_LSM_CGROUP: in bpf_prog_attach_check_attach_type()
4575 return check_atype ? atype == BPF_LSM_CGROUP : true;
4774 case BPF_LSM_CGROUP: in bpf_prog_query()
5858 else if (prog->expected_attach_type == BPF_LSM_CGROUP) in link_create()
H A Dverifier.c10492 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in do_refine_retval_range()
11039 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call()
11044 verbose(env, "BPF_LSM_CGROUP that attach to void LSM hooks can't modify return value!\n"); in check_helper_call()
17520 if (env->prog->expected_attach_type != BPF_LSM_CGROUP) { in return_retval_range()
17562 /* See return_retval_range, for BPF_LSM_CGROUP can be 0 or 0-1 depending on hook. */ in program_returns_void()
17563 if (prog->expected_attach_type != BPF_LSM_CGROUP && in program_returns_void()
17659 if (prog->expected_attach_type == BPF_LSM_CGROUP && in check_return_code()
17662 verbose(env, "Note, BPF_LSM_CGROUP that attach to void LSM hooks can't modify return value!\n"); in check_return_code()
20348 case BPF_LSM_CGROUP: in bpf_check_attach_target()
20526 return prog->expected_attach_type != BPF_LSM_CGROUP; in check_attach_btf_id()
[all...]
H A Dbtf.c6950 case BPF_LSM_CGROUP: in btf_ctx_access()
/linux/tools/bpf/bpftool/
H A Dcgroup.c55 BPF_LSM_CGROUP
/linux/tools/include/uapi/linux/
H A Dbpf.h1143 BPF_LSM_CGROUP, enumerator
/linux/include/uapi/linux/
H A Dbpf.h1143 BPF_LSM_CGROUP, enumerator
/linux/tools/lib/bpf/
H A Dlibbpf.c120 [BPF_LSM_CGROUP] = "lsm_cgroup",
10188 SEC_DEF("lsm_cgroup+", LSM, BPF_LSM_CGROUP, SEC_ATTACH_BTF),
10625 case BPF_LSM_CGROUP: in btf_get_kernel_prefix_kind()