bpf: Convert bpf_sock_addr_kern "uaddr" to sockaddr_unspec
Change struct bpf_sock_addr_kern to use sockaddr_unspec for the "uaddr"
field instead of sockaddr. This improves type safety in the BPF cgroup
socket address filtering code.
The casting in __cgroup_bpf_run_filter_sock_addr() is updated to match the
new type, removing an unnecessary cast in the initialization and updating
the conditional assignment to use the appropriate sockaddr_unspec cast.
Signed-off-by: Kees Cook <kees@kernel.org>
2 files changed