OpenVZ Forum


Home » Mailing lists » Devel » [NETNS45][PATCH 1/1] Fix network namespace unshare support.
[NETNS45][PATCH 1/1] Fix network namespace unshare support. [message #20289] Fri, 14 September 2007 16:26 Go to next message
Benjamin Thery is currently offline  Benjamin Thery
Messages: 79
Registered: March 2007
Member
Add CLONE_NEWNET flag in sys_unshare() test.

This patch should be merged with commit: 
"net: Add network namespace clone & unshare support."

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
---
 kernel/fork.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6-netns/kernel/fork.c
===================================================================
--- linux-2.6-netns.orig/kernel/fork.c
+++ linux-2.6-netns/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@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Re: [NETNS45][PATCH 1/1] Fix network namespace unshare support. [message #20334 is a reply to message #20289] Mon, 17 September 2007 02:55 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
benjamin.thery@bull.net writes:

> Add CLONE_NEWNET flag in sys_unshare() test.
>
> This patch should be merged with commit: 
> "net: Add network namespace clone & unshare support."
>
> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>

Thanks you guys are really doing a good job catching when I slip up.

Eric

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Previous Topic: [PATCH][NETNS] Use list_for_each_entry_continue_reverse in setup_net
Next Topic: [RFC][PATCH 0/3] Kernel memory accounting container (v2)
Goto Forum:
  


Current Time: Fri Jul 12 20:49:17 GMT 2024

Total time taken to generate the page: 0.03989 seconds