Advertisement
teknoraver

Untitled

Aug 11th, 2024
224
0
97 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.61 KB | None | 0 0
  1. --- a/kernel/bpf/btf.c
  2. +++ b/kernel/bpf/btf.c
  3. @@ -8309,7 +8319,11 @@ static int bpf_prog_type_to_kfunc_hook(enum bpf_prog_type prog_type)
  4.         case BPF_PROG_TYPE_SYSCALL:
  5.                 return BTF_KFUNC_HOOK_SYSCALL;
  6.         case BPF_PROG_TYPE_CGROUP_SKB:
  7. +       case BPF_PROG_TYPE_CGROUP_SOCK:
  8. +       case BPF_PROG_TYPE_CGROUP_DEVICE:
  9.         case BPF_PROG_TYPE_CGROUP_SOCK_ADDR:
  10. +       case BPF_PROG_TYPE_CGROUP_SYSCTL:
  11. +       case BPF_PROG_TYPE_CGROUP_SOCKOPT:
  12.                 return BTF_KFUNC_HOOK_CGROUP_SKB;
  13.         case BPF_PROG_TYPE_SCHED_ACT:
  14.                 return BTF_KFUNC_HOOK_SCHED_ACT;
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement