On Thu, Nov 19, 2020 at 05:26:51PM +0100, Florent Revest wrote: > From: Florent Revest <rev...@google.com> > > While eBPF programs can check whether a file is a socket by file->f_op > == &socket_file_ops, they cannot convert the void private_data pointer > to a struct socket BTF pointer. In order to do this a new helper > wrapping sock_from_file is added. > > This is useful to tracing programs but also other program types > inheriting this set of helpers such as iterators or LSM programs. Acked-by: Martin KaFai Lau <ka...@fb.com>
- [PATCH v2 4/5] bpf: Add an iterator selftest for bpf_sk_s... Florent Revest
- Re: [PATCH v2 4/5] bpf: Add an iterator selftest for... Martin KaFai Lau
- [PATCH v2 5/5] bpf: Add an iterator selftest for bpf_sk_s... Florent Revest
- Re: [PATCH v2 5/5] bpf: Add an iterator selftest for... Martin KaFai Lau
- [PATCH v2 3/5] bpf: Expose bpf_sk_storage_* to iterator p... Florent Revest
- [PATCH v2 2/5] bpf: Add a bpf_sock_from_file helper Florent Revest
- Re: [PATCH v2 2/5] bpf: Add a bpf_sock_from_file hel... KP Singh
- Re: [PATCH v2 2/5] bpf: Add a bpf_sock_from_file hel... Martin KaFai Lau
- Re: [PATCH v2 1/5] net: Remove the err argument from sock... KP Singh