]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tipc: Enable use by containers having their own network namespace
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 6 Oct 2011 17:57:51 +0000 (13:57 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:13:05 +0000 (11:13 -0500)
Permits a Linux container to use TIPC sockets even when it has its own
network namespace defined by removing the check that prohibits such use.
This makes it possible for users who wish to isolate their container
network traffic from normal network traffic to utilize TIPC.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c

index 42b8324ff2eef6e27834c9ba1d9efd994dd3ba75..e2f7c5d370ba622d8dd44ddb6fe68d3466330d2f 100644 (file)
@@ -185,9 +185,6 @@ static int tipc_create(struct net *net, struct socket *sock, int protocol,
 
        /* Validate arguments */
 
-       if (!net_eq(net, &init_net))
-               return -EAFNOSUPPORT;
-
        if (unlikely(protocol != 0))
                return -EPROTONOSUPPORT;