Re: [PATCH net-next 1/3] net: core: Add a UID field to struct sock.

2016-10-27 Thread David Miller
From: Eric Dumazet Date: Thu, 27 Oct 2016 10:36:26 -0700 > On Fri, 2016-10-28 at 02:20 +0900, Lorenzo Colitti wrote: > >> diff --git a/net/core/sock.c b/net/core/sock.c >> index d8e4532e..831e4e8 100644 >> --- a/net/core/sock.c >> +++ b/net/core/sock.c >> @@ -1570,6 +1570,7 @@ struct sock *sk_cl

Re: [PATCH net-next 1/3] net: core: Add a UID field to struct sock.

2016-10-27 Thread kbuild test robot
Hi Lorenzo, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Lorenzo-Colitti/net-core-Add-a-UID-field-to-struct-sock/20161028-020552 reproduce: make htmldocs All warnings (new ones prefixed by >>): include/linux/skbuff.h:947: warning: No descript

Re: [PATCH net-next 1/3] net: core: Add a UID field to struct sock.

2016-10-27 Thread Eric Dumazet
On Fri, 2016-10-28 at 02:20 +0900, Lorenzo Colitti wrote: > diff --git a/net/core/sock.c b/net/core/sock.c > index d8e4532e..831e4e8 100644 > --- a/net/core/sock.c > +++ b/net/core/sock.c > @@ -1570,6 +1570,7 @@ struct sock *sk_clone_lock(const struct sock *sk, const > gfp_t priority) >

[PATCH net-next 1/3] net: core: Add a UID field to struct sock.

2016-10-27 Thread Lorenzo Colitti
Protocol sockets (struct sock) don't have UIDs, but most of the time, they map 1:1 to userspace sockets (struct socket) which do. Various operations such as the iptables xt_owner match need access to the "UID of a socket", and do so by following the backpointer to the struct socket. This involves