]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pptp: lookup route with the proper net namespace
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 7 Aug 2012 00:23:11 +0000 (00:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:38:40 +0000 (10:38 -0700)
commit9c939ce5216a7f4a604985c6b20ab92081b19848
treec2b46969fef95be5e41889fcdc5c5c76682da8f3
parent9e6c806a75a3d41b9eeca6b88e9e86d300a8badc
pptp: lookup route with the proper net namespace

[ Upstream commit 08252b32311c3fa84219ad794d640af7399b5485 ]

pptp always use init_net as the net namespace to lookup
route, this will cause route lookup failed in container.

because we already set the correct net namespace to struct
sock in pptp_create,so fix this by using sock_net(sk) to
replace &init_net.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ppp/pptp.c