diff options
| author | Prankur Gupta <[email protected]> | 2021-08-17 22:42:20 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-08-19 23:04:52 +0000 |
| commit | 2c531639deb5e3ddfd6e8123b82052b2d9fbc6e5 (patch) | |
| tree | 4f23f7d3f661031fea98d69984ce28fc8b1a4191 /net/unix/af_unix.c | |
| parent | bpf: Use kvmalloc for map keys in syscalls (diff) | |
| download | kernel-2c531639deb5e3ddfd6e8123b82052b2d9fbc6e5.tar.gz kernel-2c531639deb5e3ddfd6e8123b82052b2d9fbc6e5.zip | |
bpf: Add support for {set|get} socket options from setsockopt BPF
Add logic to call bpf_setsockopt() and bpf_getsockopt() from setsockopt BPF
programs. An example use case is when the user sets the IPV6_TCLASS socket
option, we would also like to change the tcp-cc for that socket.
We don't have any use case for calling bpf_setsockopt() from supposedly read-
only sys_getsockopt(), so it is made available to BPF_CGROUP_SETSOCKOPT only
at this point.
Signed-off-by: Prankur Gupta <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
