[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C173412.1070606@openvz.org>
Date: Tue, 15 Jun 2010 12:04:34 +0400
From: Pavel Emelyanov <xemul@...nvz.org>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
CC: David Miller <davem@...emloft.net>,
Serge Hallyn <serue@...ibm.com>,
Linux Containers <containers@...ts.osdl.org>,
Daniel Lezcano <daniel.lezcano@...e.fr>, netdev@...r.kernel.org
Subject: Re: [PATCH 4/8] af_unix: Allow SO_PEERCRED to work across namespaces.
On 06/13/2010 05:30 PM, Eric W. Biederman wrote:
>
> Use struct pid and struct cred to store the peer credentials on struct
> sock. This gives enough information to convert the peer credential
> information to a value relative to whatever namespace the socket is in
> at the time.
>
> This removes nasty surprises when using SO_PEERCRED on socket
> connetions where the processes on either side are in different pid and
> user namespaces.
>
> Signed-off-by: Eric W. Biederman <ebiederm@...ssion.com>
Acked-by: Pavel Emelyanov <xemul@...nvz.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists