scm: Capture the full credentials of the scm sender.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 13 Jun 2010 03:32:34 +0000 (03:32 +0000)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:35 +0000 (11:03 -0800)
commitcab9e9848b9a8283b0504a2d7c435a9f5ba026de
tree1c53e6bc3fa59adbbd6e7011d8c6a6accb3b45df
parent4d6d4fae2b988f48b94d93bc398fdf353463ec40
scm: Capture the full credentials of the scm sender.

Upstream commit 257b5358b32f17e0603b6ff57b13610b0e02348f

Start capturing not only the userspace pid, uid and gid values of the
sending process but also the struct pid and struct cred of the sending
process as well.

This is in preparation for properly supporting SCM_CREDENTIALS for
sockets that have different uid and/or pid namespaces at the different
ends.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Serge E. Hallyn <serge@hallyn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
include/net/scm.h
net/core/scm.c