diff options
author | Tom Parkin <tparkin@katalix.com> | 2013-02-01 00:43:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-05 20:20:30 +0100 |
commit | 167eb17e0b178549f5e19036b16b6d6e35856b67 (patch) | |
tree | 0f8866d325659e6aef8e10506d4e316335d1e54c /net/l2tp/l2tp_ip.c | |
parent | l2tp: prevent tunnel creation on netns mismatch (diff) | |
download | linux-167eb17e0b178549f5e19036b16b6d6e35856b67.tar.xz linux-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/l2tp/l2tp_ip.c')
0 files changed, 0 insertions, 0 deletions