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

2017-03-20 Thread Daniel Borkmann
On 03/20/2017 07:41 PM, 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-off-by: Che

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

2017-03-20 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