Home
last modified time | relevance | path

Searched refs:expected_attach_type (Results 1 – 3 of 3) sorted by relevance

/kernel/bpf/
Dsyscall.c1571 if (!attr->expected_attach_type) in bpf_prog_load_fixup_attach_type()
1572 attr->expected_attach_type = in bpf_prog_load_fixup_attach_type()
1580 enum bpf_attach_type expected_attach_type) in bpf_prog_load_check_attach_type() argument
1584 switch (expected_attach_type) { in bpf_prog_load_check_attach_type()
1593 switch (expected_attach_type) { in bpf_prog_load_check_attach_type()
1607 switch (expected_attach_type) { in bpf_prog_load_check_attach_type()
1615 switch (expected_attach_type) { in bpf_prog_load_check_attach_type()
1670 if (bpf_prog_load_check_attach_type(type, attr->expected_attach_type)) in bpf_prog_load()
1678 prog->expected_attach_type = attr->expected_attach_type; in bpf_prog_load()
1881 return attach_type == prog->expected_attach_type ? 0 : -EINVAL; in bpf_prog_attach_check_attach_type()
[all …]
Dcgroup.c1446 return prog->expected_attach_type == in cg_sockopt_is_valid_access()
1453 return prog->expected_attach_type == in cg_sockopt_is_valid_access()
1481 return prog->expected_attach_type == BPF_CGROUP_GETSOCKOPT; in cg_sockopt_is_valid_access()
Dverifier.c6143 if (env->prog->expected_attach_type == BPF_CGROUP_UDP4_RECVMSG || in check_return_code()
6144 env->prog->expected_attach_type == BPF_CGROUP_UDP6_RECVMSG) in check_return_code()
6148 if (env->prog->expected_attach_type == BPF_CGROUP_INET_EGRESS) { in check_return_code()