Re: [PATCH bpf-next v2] libbpf: use SOCK_CLOEXEC when opening the netlink socket

From: Toke Høiland-Jørgensen
Date: Wed Mar 17 2021 - 09:05:48 EST


Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> writes:

> Otherwise, there exists a small window between the opening and closing
> of the socket fd where it may leak into processes launched by some other
> thread.
>
> Fixes: 949abbe88436 ("libbpf: add function to setup XDP")
> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>

Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>