diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-07 01:48:59 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-06-06 16:53:12 -0700 |
commit | 9bb59ac1f6c362f14b58187bc56e737780c52c19 (patch) | |
tree | 82aa9c8a48443580a5f38f935c93de425a8e6804 | |
parent | 3dbc6adac1f3b83fd4c39899c747da7b417e3ffc (diff) | |
download | linux-9bb59ac1f6c362f14b58187bc56e737780c52c19.tar.gz linux-9bb59ac1f6c362f14b58187bc56e737780c52c19.tar.bz2 linux-9bb59ac1f6c362f14b58187bc56e737780c52c19.zip |
bpf, libbpf: enable recvmsg attach types
Another trivial patch to libbpf in order to enable identifying and
attaching programs to BPF_CGROUP_UDP{4,6}_RECVMSG by section name.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | tools/lib/bpf/libbpf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 5d046cc7b207..151f7ac1882e 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -3210,6 +3210,10 @@ static const struct { BPF_CGROUP_UDP4_SENDMSG), BPF_EAPROG_SEC("cgroup/sendmsg6", BPF_PROG_TYPE_CGROUP_SOCK_ADDR, BPF_CGROUP_UDP6_SENDMSG), + BPF_EAPROG_SEC("cgroup/recvmsg4", BPF_PROG_TYPE_CGROUP_SOCK_ADDR, + BPF_CGROUP_UDP4_RECVMSG), + BPF_EAPROG_SEC("cgroup/recvmsg6", BPF_PROG_TYPE_CGROUP_SOCK_ADDR, + BPF_CGROUP_UDP6_RECVMSG), BPF_EAPROG_SEC("cgroup/sysctl", BPF_PROG_TYPE_CGROUP_SYSCTL, BPF_CGROUP_SYSCTL), }; |