]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24358e33b5f3b01b6b6548e33d3212f303b4d462
tree7987367633b4729dff0afa2180862a2ce919f3cb
parent8e48d6f063dd33e3a4cd8a43ec042e895d41b144
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