Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/kernel/bpf/btf.c
- +++ b/kernel/bpf/btf.c
- @@ -8309,7 +8319,11 @@ static int bpf_prog_type_to_kfunc_hook(enum bpf_prog_type prog_type)
- case BPF_PROG_TYPE_SYSCALL:
- return BTF_KFUNC_HOOK_SYSCALL;
- case BPF_PROG_TYPE_CGROUP_SKB:
- + case BPF_PROG_TYPE_CGROUP_SOCK:
- + case BPF_PROG_TYPE_CGROUP_DEVICE:
- case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
- + case BPF_PROG_TYPE_CGROUP_SYSCTL:
- + case BPF_PROG_TYPE_CGROUP_SOCKOPT:
- return BTF_KFUNC_HOOK_CGROUP_SKB;
- case BPF_PROG_TYPE_SCHED_ACT:
- return BTF_KFUNC_HOOK_SCHED_ACT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement