android_kernel_msm-6.1_noth.../tools/include/uapi
Florent Revest 4f19cab761 bpf: Add a bpf_sock_from_file helper
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.

Signed-off-by: Florent Revest <revest@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: KP Singh <kpsingh@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20201204113609.1850150-2-revest@google.com
2020-12-04 22:32:40 +01:00
..
asm tools: Fix off-by 1 relative directory includes 2020-03-06 08:36:46 -03:00
asm-generic tools headers UAPI: Update process_madvise affected files 2020-11-03 08:29:30 -03:00
drm tools headers UAPI: Sync drm/i915_drm.h with the kernel sources 2020-11-03 08:35:13 -03:00
linux bpf: Add a bpf_sock_from_file helper 2020-12-04 22:32:40 +01:00
sound tools include UAPI: Sync sound/asound.h copy 2020-02-12 11:04:23 -03:00