diff options
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 388d4feda348..e254526d6744 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c | |||
@@ -1249,6 +1249,8 @@ bpf_prog_load_check_attach_type(enum bpf_prog_type prog_type, | |||
1249 | case BPF_CGROUP_INET6_BIND: | 1249 | case BPF_CGROUP_INET6_BIND: |
1250 | case BPF_CGROUP_INET4_CONNECT: | 1250 | case BPF_CGROUP_INET4_CONNECT: |
1251 | case BPF_CGROUP_INET6_CONNECT: | 1251 | case BPF_CGROUP_INET6_CONNECT: |
1252 | case BPF_CGROUP_UDP4_SENDMSG: | ||
1253 | case BPF_CGROUP_UDP6_SENDMSG: | ||
1252 | return 0; | 1254 | return 0; |
1253 | default: | 1255 | default: |
1254 | return -EINVAL; | 1256 | return -EINVAL; |
@@ -1565,6 +1567,8 @@ static int bpf_prog_attach(const union bpf_attr *attr) | |||
1565 | case BPF_CGROUP_INET6_BIND: | 1567 | case BPF_CGROUP_INET6_BIND: |
1566 | case BPF_CGROUP_INET4_CONNECT: | 1568 | case BPF_CGROUP_INET4_CONNECT: |
1567 | case BPF_CGROUP_INET6_CONNECT: | 1569 | case BPF_CGROUP_INET6_CONNECT: |
1570 | case BPF_CGROUP_UDP4_SENDMSG: | ||
1571 | case BPF_CGROUP_UDP6_SENDMSG: | ||
1568 | ptype = BPF_PROG_TYPE_CGROUP_SOCK_ADDR; | 1572 | ptype = BPF_PROG_TYPE_CGROUP_SOCK_ADDR; |
1569 | break; | 1573 | break; |
1570 | case BPF_CGROUP_SOCK_OPS: | 1574 | case BPF_CGROUP_SOCK_OPS: |
@@ -1635,6 +1639,8 @@ static int bpf_prog_detach(const union bpf_attr *attr) | |||
1635 | case BPF_CGROUP_INET6_BIND: | 1639 | case BPF_CGROUP_INET6_BIND: |
1636 | case BPF_CGROUP_INET4_CONNECT: | 1640 | case BPF_CGROUP_INET4_CONNECT: |
1637 | case BPF_CGROUP_INET6_CONNECT: | 1641 | case BPF_CGROUP_INET6_CONNECT: |
1642 | case BPF_CGROUP_UDP4_SENDMSG: | ||
1643 | case BPF_CGROUP_UDP6_SENDMSG: | ||
1638 | ptype = BPF_PROG_TYPE_CGROUP_SOCK_ADDR; | 1644 | ptype = BPF_PROG_TYPE_CGROUP_SOCK_ADDR; |
1639 | break; | 1645 | break; |
1640 | case BPF_CGROUP_SOCK_OPS: | 1646 | case BPF_CGROUP_SOCK_OPS: |
@@ -1692,6 +1698,8 @@ static int bpf_prog_query(const union bpf_attr *attr, | |||
1692 | case BPF_CGROUP_INET6_POST_BIND: | 1698 | case BPF_CGROUP_INET6_POST_BIND: |
1693 | case BPF_CGROUP_INET4_CONNECT: | 1699 | case BPF_CGROUP_INET4_CONNECT: |
1694 | case BPF_CGROUP_INET6_CONNECT: | 1700 | case BPF_CGROUP_INET6_CONNECT: |
1701 | case BPF_CGROUP_UDP4_SENDMSG: | ||
1702 | case BPF_CGROUP_UDP6_SENDMSG: | ||
1695 | case BPF_CGROUP_SOCK_OPS: | 1703 | case BPF_CGROUP_SOCK_OPS: |
1696 | case BPF_CGROUP_DEVICE: | 1704 | case BPF_CGROUP_DEVICE: |
1697 | break; | 1705 | break; |