From: Eric W. Biederman Date: Sun, 13 Jun 2010 03:30:14 +0000 (+0000) Subject: af_unix: Allow SO_PEERCRED to work across namespaces. X-Git-Tag: v2.6.36-rc1~571^2~553 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=109f6e39fa07c48f580125f531f46cb7c245b528;p=pandora-kernel.git af_unix: Allow SO_PEERCRED to work across namespaces. Use struct pid and struct cred to store the peer credentials on struct sock. This gives enough information to convert the peer credential information to a value relative to whatever namespace the socket is in at the time. This removes nasty surprises when using SO_PEERCRED on socket connetions where the processes on either side are in different pid and user namespaces. Signed-off-by: Eric W. Biederman Acked-by: Daniel Lezcano Acked-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed