userns: Teach inet_diag to work with user namespaces
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 24 May 2012 23:58:08 +0000 (17:58 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 15 Aug 2012 04:55:20 +0000 (21:55 -0700)
commitd06ca9564350184a19b5aae9ac150f1b1306de29
treea6f5e39232911fe0582690f223390997a84f0b86
parentc336d148adc4181f31741ae066df41429be64b67
userns: Teach inet_diag to work with user namespaces

Compute the user namespace of the socket that we are replying to
and translate the kuids of reported sockets into that user namespace.

Cc: Andrew Vagin <avagin@openvz.org>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/inet_diag.h
init/Kconfig
net/ipv4/inet_diag.c
net/ipv4/udp_diag.c