Prankur Gupta 2c531639de 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 <prankgup@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210817224221.3257826-2-prankgup@fb.com
2021-08-20 01:04:52 +02:00
..
2021-05-24 21:13:05 -07:00
2021-03-18 00:22:51 +01:00
2021-07-07 20:01:45 -07:00
2020-03-13 12:49:52 -07:00
2021-07-15 22:31:10 +02:00
2020-08-28 15:41:30 +02:00
2021-05-24 21:13:05 -07:00
2021-02-12 12:56:53 -08:00