diff options
| author | Daan De Meyer <[email protected]> | 2023-10-11 18:51:05 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2023-10-11 23:29:25 +0000 |
| commit | 53e380d21441909b12b6e0782b77187ae4b971c4 (patch) | |
| tree | 50f50782b17955c8331b7c0bfe7a363a20037b0b /net/unix/af_unix.c | |
| parent | bpf: Propagate modified uaddrlen from cgroup sockaddr programs (diff) | |
| download | kernel-53e380d21441909b12b6e0782b77187ae4b971c4.tar.gz kernel-53e380d21441909b12b6e0782b77187ae4b971c4.zip | |
bpf: Add bpf_sock_addr_set_sun_path() to allow writing unix sockaddr from bpf
As prep for adding unix socket support to the cgroup sockaddr hooks,
let's add a kfunc bpf_sock_addr_set_sun_path() that allows modifying a unix
sockaddr from bpf. While this is already possible for AF_INET and AF_INET6,
we'll need this kfunc when we add unix socket support since modifying the
address for those requires modifying both the address and the sockaddr
length.
Signed-off-by: Daan De Meyer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
