Daan De Meyer fefba7d1ae bpf: Propagate modified uaddrlen from cgroup sockaddr programs
As prep for adding unix socket support to the cgroup sockaddr hooks,
let's propagate the sockaddr length back to the caller after running
a bpf cgroup sockaddr hook program. While not important for AF_INET or
AF_INET6, the sockaddr length is important when working with AF_UNIX
sockaddrs as the size of the sockaddr cannot be determined just from the
address family or the sockaddr's contents.

__cgroup_bpf_run_filter_sock_addr() is modified to take the uaddrlen as
an input/output argument. After running the program, the modified sockaddr
length is stored in the uaddrlen pointer.

Signed-off-by: Daan De Meyer <daan.j.demeyer@gmail.com>
Link: https://lore.kernel.org/r/20231011185113.140426-3-daan.j.demeyer@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
2023-10-11 15:03:40 -07:00
..
2023-05-31 13:06:57 +02:00
2023-03-31 21:37:06 -07:00
2023-04-13 16:43:38 -07:00
2023-01-26 10:52:18 +01:00
2022-09-20 10:21:49 -07:00
2022-12-20 03:13:45 +01:00
2023-09-16 13:42:34 +01:00
2022-11-16 09:43:35 +00:00
2023-09-14 16:16:36 +02:00
2023-08-29 17:39:15 -07:00