Re: [PATCH net-next v8 2/3] Add a eBPF helper function to retrieve socket uid

2017-04-20 Thread Mickaël Salaün
On 23/03/2017 01:27, Chenbo Feng wrote: > From: Chenbo Feng > > Returns the owner uid of the socket inside a sk_buff. This is useful to > perform per-UID accounting of network traffic or per-UID packet > filtering. The socket need to be a fullsock otherwise overflowuid is > returned. > > Signed

[PATCH net-next v8 2/3] Add a eBPF helper function to retrieve socket uid

2017-03-22 Thread Chenbo Feng
From: Chenbo Feng Returns the owner uid of the socket inside a sk_buff. This is useful to perform per-UID accounting of network traffic or per-UID packet filtering. The socket need to be a fullsock otherwise overflowuid is returned. Signed-off-by: Chenbo Feng --- include/uapi/linux/bpf.h