sock: Introduce cred_to_ucred
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 13 Jun 2010 03:28:59 +0000 (03:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2010 21:55:35 +0000 (14:55 -0700)
To keep the coming code clear and to allow both the sock
code and the scm code to share the logic introduce a
fuction to translate from struct cred to struct ucred.

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/linux/socket.h
net/core/sock.c

Simple merge
diff --cc net/core/sock.c
Simple merge