diff options
| author | Eric W. Biederman <[email protected]> | 2012-11-16 03:02:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-11-19 01:30:55 +0000 |
| commit | 2407dc25f741cf73853e0521ce9257531c9fc61d (patch) | |
| tree | 423a867f35d847b7870edefb7d86fe63290c4613 /net/unix/sysctl_net_unix.c | |
| parent | ipv6: Preserve ipv6 functionality needed by NET (diff) | |
| download | kernel-2407dc25f741cf73853e0521ce9257531c9fc61d.tar.gz kernel-2407dc25f741cf73853e0521ce9257531c9fc61d.zip | |
netns: Deduplicate and fix copy_net_ns when !CONFIG_NET_NS
The copy of copy_net_ns used when the network stack is not
built is broken as it does not return -EINVAL when attempting
to create a new network namespace. We don't even have
a previous network namespace.
Since we need a copy of copy_net_ns in net/net_namespace.h that is
available when the networking stack is not built at all move the
correct version of copy_net_ns from net_namespace.c into net_namespace.h
Leaving us with just 2 versions of copy_net_ns. One version for when
we compile in network namespace suport and another stub for all other
occasions.
Acked-by: Serge Hallyn <[email protected]>
Signed-off-by: Eric W. Biederman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
