aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/protocol.c
diff options
context:
space:
mode:
authorTom Parkin <tparkin@katalix.com>2013-01-31 23:43:03 +0000
committerDavid S. Miller <davem@davemloft.net>2013-02-05 14:20:30 -0500
commit167eb17e0b178549f5e19036b16b6d6e35856b67 (patch)
tree0f8866d325659e6aef8e10506d4e316335d1e54c /net/ipv4/protocol.c
parentl2tp: prevent tunnel creation on netns mismatch (diff)
downloadlinux-dev-167eb17e0b178549f5e19036b16b6d6e35856b67.tar.xz
linux-dev-167eb17e0b178549f5e19036b16b6d6e35856b67.zip
l2tp: create tunnel sockets in the right namespace
When creating unmanaged tunnel sockets we should honour the network namespace passed to l2tp_tunnel_create. Furthermore, unmanaged tunnel sockets should not hold a reference to the network namespace lest they accidentally keep alive a namespace which should otherwise have been released. Unmanaged tunnel sockets now drop their namespace reference via sk_change_net, and are released in a new pernet exit callback, l2tp_exit_net. Signed-off-by: Tom Parkin <tparkin@katalix.com> Signed-off-by: James Chapman <jchapman@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/protocol.c')
0 files changed, 0 insertions, 0 deletions