Thread (5 messages) flat view 5 messages, 2 authors, 2021-01-11

Re: [PATCH bpf-next 1/2] bpf: allow to retrieve sol_socket opts from sock_addr progs

From: Yonghong Song <hidden>
Date: 2021-01-11 20:04:39
Also in: bpf


On 1/11/21 8:17 AM, Daniel Borkmann wrote:
The _bpf_setsockopt() is able to set some of the SOL_SOCKET level options,
however, _bpf_getsockopt() has little support to actually retrieve them.
This small patch adds few misc options such as SO_MARK, SO_PRIORITY and
SO_BINDTOIFINDEX. For the latter getter and setter are added. The mark and
priority in particular allow to retrieve the options from BPF cgroup hooks
to then implement custom behavior / settings on the syscall hooks compared
to other sockets that stick to the defaults, for example.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help