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