[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQK0iK6maUGtz1xnJcboHO=h-W4YU5CG_Mi+HYqG8XB_1w@mail.gmail.com>
Date: Tue, 12 Jan 2021 17:28:09 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: Alexei Starovoitov <ast@...nel.org>, Yonghong Song <yhs@...com>,
bpf <bpf@...r.kernel.org>,
Network Development <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next v2 1/2] bpf: allow to retrieve sol_socket opts
from sock_addr progs
On Mon, Jan 11, 2021 at 3:09 PM Daniel Borkmann <daniel@...earbox.net> 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@...earbox.net>
> Acked-by: Yonghong Song <yhs@...com>
Applied.
Powered by blists - more mailing lists