af_unix: Allow credentials to work across user and pid namespaces.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 13 Jun 2010 03:34:33 +0000 (03:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2010 21:58:16 +0000 (14:58 -0700)
commit7361c36c5224519b258219fe3d0e8abc865d8134
tree7987367633b4729dff0afa2180862a2ce919f3cb
parent257b5358b32f17e0603b6ff57b13610b0e02348f
af_unix: Allow credentials to work across user and pid namespaces.

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>
include/net/af_unix.h
net/unix/af_unix.c