Bump tag level
[linux-2.6.git] / linux-2.6-710-netns-unshare-kludge.patch
1 diff -Nurb --exclude='*.a' --exclude='*.dbg' --exclude='*.order' --exclude='*.d' --exclude='*.elf' --exclude='*.o' --exclude='*.mod' --exclude='*.cmd' --exclude='*.orig' --exclude='*.swp' --exclude=tags --exclude='*.patch' --exclude='*.diff' --exclude='*.svn*' linux-2.6.27-700/net/socket.c linux-2.6.27-710/net/socket.c
2 --- linux-2.6.27-700/net/socket.c       2009-04-16 21:55:22.000000000 -0400
3 +++ linux-2.6.27-710/net/socket.c       2009-04-16 22:22:48.000000000 -0400
4 @@ -1138,12 +1138,17 @@
5         if (type < 0 || type >= SOCK_MAX)
6                 return -EINVAL;
7  
8 +    /*
9 +       This fragment prevents net ns from being unshared when a vserver is created
10 +       via util-vserver-pl. Commenting out of Trellis for now.
11 +
12         if (!nx_check(0, VS_ADMIN)) {
13                 if (family == PF_INET && !current_nx_info_has_v4())
14                         return -EAFNOSUPPORT;
15                 if (family == PF_INET6 && !current_nx_info_has_v6())
16                         return -EAFNOSUPPORT;
17         }
18 +    */
19  
20         /* Compatibility.
21