Re: [PATCH 1/2] net: Implement SO_PEERCGROUP

2014-04-15 Thread Vivek Goyal
On Tue, Apr 15, 2014 at 02:54:02PM -0700, Andy Lutomirski wrote: > On Tue, Apr 15, 2014 at 2:15 PM, Vivek Goyal wrote: > > Implement SO_PEERCGROUP along the lines of SO_PEERCRED. This returns the > > cgroup of first mounted hierarchy of the task. For the case of client, > > it represents the cgrou

Re: [PATCH 1/2] net: Implement SO_PEERCGROUP

2014-04-15 Thread Andy Lutomirski
On Tue, Apr 15, 2014 at 2:15 PM, Vivek Goyal wrote: > Implement SO_PEERCGROUP along the lines of SO_PEERCRED. This returns the > cgroup of first mounted hierarchy of the task. For the case of client, > it represents the cgroup of client at the time of opening the connection. > After that client cg

[PATCH 1/2] net: Implement SO_PEERCGROUP

2014-04-15 Thread Vivek Goyal
Implement SO_PEERCGROUP along the lines of SO_PEERCRED. This returns the cgroup of first mounted hierarchy of the task. For the case of client, it represents the cgroup of client at the time of opening the connection. After that client cgroup might change. This works only for unix stream sockets.