Re: netns34

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eric,

I've cloned the repository and built the kernel.

Unshare support is broken. It misses a small change in sys_unshare()
to accept the CLONE_NEWNET flag.
I guess it should be added in commit "net: Add network namespace
clone & unshare support." (See attached patch below)

Also, have you removed the "sysfs interface support for moving devices between namespaces" on purpose?
Is there another way to move interfaces now?

Benjamin

Eric W. Biederman wrote:
ebiederm@xxxxxxxxxxxx (Eric W. Biederman) writes:

Ok.  After a bunch of work I have my network namespace patches working
again against 2.6.23-rc2 or whatever is linus's latest.

I need to break out my sysctl work and send that separately.

I need to get veth in there and I need to get a patch to /sbin/ip
to work with Patrick McHardy's form of patches.

But I think I am quickly approaching the point where I will have
patches ready for merging.

Once I get sysctl sorted out I will start post a minimal patchset
for prereview and see where things go.

Hopefully my sysfs work finally sticks this time.

And the important part the code will shortly be available at:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-netns.git#netns/v2.6.23-rc2netns34

And also from the default head.

Eric




--
B e n j a m i n   T h e r y  - BULL/DT/Open Software R&D

   http://www.bull.com
Fix network namespace unshare support.
Add CLONE_NEWNET flag in sys_unshare().

Index: linux-2.6.23-rc2-netns34/kernel/fork.c
===================================================================
--- linux-2.6.23-rc2-netns34.orig/kernel/fork.c
+++ linux-2.6.23-rc2-netns34/kernel/fork.c
@@ -1608,7 +1608,8 @@ asmlinkage long sys_unshare(unsigned lon
 	err = -EINVAL;
 	if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND|
 				CLONE_VM|CLONE_FILES|CLONE_SYSVSEM|
-				CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWUSER))
+				CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWUSER|
+				CLONE_NEWNET))
 		goto bad_unshare_out;
 
 	if ((err = unshare_thread(unshare_flags)))
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux