net: Check the correct namespace when spoofing pid over SCM_RIGHTS
authorAndy Lutomirski <luto@amacapital.net>
Thu, 22 Aug 2013 18:39:15 +0000 (11:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:05 +0000 (17:18 -0700)
commit979ad974d2d7d1e98e21b582a11acdf0713914e6
treeaa0d67ecd11d881a2d412fae5c3870c0de5071f2
parentac78ae630c039e548e2b8d41b6036f240386d770
net: Check the correct namespace when spoofing pid over SCM_RIGHTS

commit d661684cf6820331feae71146c35da83d794467e upstream.

This is a security bug.

The follow-up will fix nsproxy to discourage this type of issue from
happening again.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/scm.c