From: Benjamin Thery <benjamin.thery-6ktuUTfB/bM@public.gmane.org>
To: "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
Cc: Linux Containers
<containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>,
Daniel Lezcano <dlezcano-juSfH4iHXoxBDgjK7y7TUQ@public.gmane.org>,
"Denis V. Lunev" <den-3ImXcnM4P+0@public.gmane.org>
Subject: Re: netns34
Date: Wed, 08 Aug 2007 13:16:48 +0200 [thread overview]
Message-ID: <46B9A620.4050906@bull.net> (raw)
In-Reply-To: <m1wsw7f0r0.fsf-T1Yj925okcoyDheHMi7gv2pdwda3JcWeAL8bYrjMMd8@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]
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-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (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
[-- Attachment #2: Fix-netns-unshare-support.patch --]
[-- Type: text/x-patch, Size: 664 bytes --]
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)))
[-- Attachment #3: Type: text/plain, Size: 206 bytes --]
_______________________________________________
Containers mailing list
Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
https://lists.linux-foundation.org/mailman/listinfo/containers
next prev parent reply other threads:[~2007-08-08 11:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-07 22:11 netns34 Eric W. Biederman
[not found] ` <m11wefgfl0.fsf-T1Yj925okcoyDheHMi7gv2pdwda3JcWeAL8bYrjMMd8@public.gmane.org>
2007-08-07 22:17 ` netns34 Eric W. Biederman
[not found] ` <m1wsw7f0r0.fsf-T1Yj925okcoyDheHMi7gv2pdwda3JcWeAL8bYrjMMd8@public.gmane.org>
2007-08-08 11:16 ` Benjamin Thery [this message]
[not found] ` <46B9A620.4050906-6ktuUTfB/bM@public.gmane.org>
2007-08-08 14:57 ` netns34 Eric W. Biederman
2007-08-14 16:45 ` netns34 Eric W. Biederman
2007-09-12 16:47 ` netns45 Eric W. Biederman
[not found] ` <m1wsuv96f8.fsf_-_-T1Yj925okcoyDheHMi7gv2pdwda3JcWeAL8bYrjMMd8@public.gmane.org>
2007-09-12 16:57 ` netns45 Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46B9A620.4050906@bull.net \
--to=benjamin.thery-6ktuutfb/bm@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
--cc=den-3ImXcnM4P+0@public.gmane.org \
--cc=dlezcano-juSfH4iHXoxBDgjK7y7TUQ@public.gmane.org \
--cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.