]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e48d6f063dd33e3a4cd8a43ec042e895d41b144
tree15c4887d45eb6ccfe32f5e67b5c0009e1e8dae6c
parentd639e22dfeb88612afd41230dde43b8f7ab5cb76
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