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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2010 21:55:56 +0000 (14:55 -0700)
commit257b5358b32f17e0603b6ff57b13610b0e02348f
tree15c4887d45eb6ccfe32f5e67b5c0009e1e8dae6c
parentb47030c71dfd6c8cd5cb6e551b6f7f7cfc96f6a6
scm: Capture the full credentials of the scm sender.

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>
include/net/scm.h
net/core/scm.c