af_unix: Allow credentials to work across user and pid namespaces.
commit76319701efb717e4a159f4cdb159646c6862e6a0
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 13 Jun 2010 03:34:33 +0000 (13 03:34 +0000)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:36 +0000 (6 11:03 -0800)
treec5473d20778ad4b72d447656a7c97da304cf7df8
parentcab9e9848b9a8283b0504a2d7c435a9f5ba026de
af_unix: Allow credentials to work across user and pid namespaces.

Upstream commit 7361c36c5224519b258219fe3d0e8abc865d8134

In unix_skb_parms store pointers to struct pid and struct cred instead
of raw uid, gid, and pid values, then translate the credentials on
reception into values that are meaningful in the receiving processes
namespaces.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
include/net/af_unix.h
net/unix/af_unix.c