unshare netns and unscrew-up something i did
[linux-2.6.git] / linux-2.6-591-unshare-netns.patch
1 --- linux-2.6.22-591/kernel/vserver/space.c.orig        2008-01-02 13:56:26.000000000 -0500
2 +++ linux-2.6.22-591/kernel/vserver/space.c     2008-01-18 12:10:39.000000000 -0500
3 @@ -37,7 +37,8 @@
4         .mask = CLONE_NEWNS |
5                 CLONE_NEWUTS |
6                 CLONE_NEWIPC |
7 -               CLONE_FS
8 +               CLONE_FS | 
9 +               CLONE_NEWNET
10  };
11  
12  
13 --- linux-2.6.22-591/kernel/nsproxy.c.orig      2008-01-02 13:56:37.000000000 -0500
14 +++ linux-2.6.22-591/kernel/nsproxy.c   2008-01-18 14:39:18.000000000 -0500
15 @@ -163,7 +163,6 @@
16                 return 0;
17  
18         get_nsproxy(old_ns);
19 -       return 0;
20  
21         if (!(flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | CLONE_NEWUSER | CLONE_NEWNET)))
22                 return 0;