Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-24 Thread Vivek Goyal
On Wed, Apr 23, 2014 at 04:53:31PM -0400, Daniel J Walsh wrote: > > On 04/23/2014 03:05 PM, Vivek Goyal wrote: > > On Tue, Apr 22, 2014 at 01:31:13PM -0700, Andy Lutomirski wrote: > > [..] > >>> Otherwise, without SO_PASSCGROUP, there is no way for datagram sockets > >>> to find out the peer's ope

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-23 Thread Daniel J Walsh
On 04/23/2014 03:05 PM, Vivek Goyal wrote: > On Tue, Apr 22, 2014 at 01:31:13PM -0700, Andy Lutomirski wrote: > [..] >>> Otherwise, without SO_PASSCGROUP, there is no way for datagram sockets >>> to find out the peer's open() time cgroup. >> Right. >> >> I'd still like to know what userspace appli

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-23 Thread Vivek Goyal
On Tue, Apr 22, 2014 at 01:31:13PM -0700, Andy Lutomirski wrote: [..] > > Otherwise, without SO_PASSCGROUP, there is no way for datagram sockets > > to find out the peer's open() time cgroup. > > Right. > > I'd still like to know what userspace applications want this feature. > The canonical exam

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-23 Thread Andy Lutomirski
On Wed, Apr 23, 2014 at 8:55 AM, Vivek Goyal wrote: > On Tue, Apr 22, 2014 at 04:05:58PM -0400, David Miller wrote: >> From: Vivek Goyal >> Date: Tue, 15 Apr 2014 17:15:44 -0400 >> >> > This is another version of patchset to add support passing cgroup >> > information of client over unix socket A

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-23 Thread Vivek Goyal
On Wed, Apr 23, 2014 at 11:55:12AM -0400, Vivek Goyal wrote: > On Tue, Apr 22, 2014 at 04:05:58PM -0400, David Miller wrote: > > From: Vivek Goyal > > Date: Tue, 15 Apr 2014 17:15:44 -0400 > > > > > This is another version of patchset to add support passing cgroup > > > information of client over

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-23 Thread Vivek Goyal
On Tue, Apr 22, 2014 at 04:05:58PM -0400, David Miller wrote: > From: Vivek Goyal > Date: Tue, 15 Apr 2014 17:15:44 -0400 > > > This is another version of patchset to add support passing cgroup > > information of client over unix socket API. > > I'm marking this patch series as "changes requeste

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-22 Thread Andy Lutomirski
On Tue, Apr 22, 2014 at 1:32 PM, David Miller wrote: > From: Andy Lutomirski > Date: Tue, 22 Apr 2014 13:31:13 -0700 > >> On Tue, Apr 22, 2014 at 1:29 PM, David Miller wrote: >>> From: Andy Lutomirski >>> Date: Tue, 22 Apr 2014 13:08:59 -0700 >>> On Tue, Apr 22, 2014 at 1:05 PM, David Mill

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-22 Thread David Miller
From: Andy Lutomirski Date: Tue, 22 Apr 2014 13:31:13 -0700 > On Tue, Apr 22, 2014 at 1:29 PM, David Miller wrote: >> From: Andy Lutomirski >> Date: Tue, 22 Apr 2014 13:08:59 -0700 >> >>> On Tue, Apr 22, 2014 at 1:05 PM, David Miller wrote: From: Vivek Goyal Date: Tue, 15 Apr 2014 1

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-22 Thread Andy Lutomirski
On Tue, Apr 22, 2014 at 1:29 PM, David Miller wrote: > From: Andy Lutomirski > Date: Tue, 22 Apr 2014 13:08:59 -0700 > >> On Tue, Apr 22, 2014 at 1:05 PM, David Miller wrote: >>> From: Vivek Goyal >>> Date: Tue, 15 Apr 2014 17:15:44 -0400 >>> This is another version of patchset to add supp

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-22 Thread David Miller
From: Andy Lutomirski Date: Tue, 22 Apr 2014 13:08:59 -0700 > On Tue, Apr 22, 2014 at 1:05 PM, David Miller wrote: >> From: Vivek Goyal >> Date: Tue, 15 Apr 2014 17:15:44 -0400 >> >>> This is another version of patchset to add support passing cgroup >>> information of client over unix socket AP

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-22 Thread Andy Lutomirski
On Tue, Apr 22, 2014 at 1:05 PM, David Miller wrote: > From: Vivek Goyal > Date: Tue, 15 Apr 2014 17:15:44 -0400 > >> This is another version of patchset to add support passing cgroup >> information of client over unix socket API. > > I'm marking this patch series as "changes requested" in patchw

Re: [PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-22 Thread David Miller
From: Vivek Goyal Date: Tue, 15 Apr 2014 17:15:44 -0400 > This is another version of patchset to add support passing cgroup > information of client over unix socket API. I'm marking this patch series as "changes requested" in patchwork because if we still end up adding this feature SO_PASSCGROUP

[PATCH 0/2] net: Implement SO_PEERCGROUP and SO_PASSCGROUP socket options

2014-04-15 Thread Vivek Goyal
Hi, This is another version of patchset to add support passing cgroup information of client over unix socket API. This patchset adds a new socket option SO_PEERCGROUP to receive cgroup information of client which opened the connection. This only works with unix stream sockets. It also adds anoth