Re: [PATCH 8/8] net: Implement socketat.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Monday, October 4, 2010 - 12:07 pm

jamal <hadi@cyberus.ca> writes:


Almost.

create should be:
        * verify namespace-name is not already in use
        * mkdir -p /var/run/netns/<namespace-name>
	* unshare the netns
        * mount --bind /proc/self/ns/net /var/run/netns/<namespace-name>

Are you talking about an replacing something that used to use the linux
vrf patches that are floating around?

Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ABI REVIEW][PATCH 0/8] Namespace file descriptors, Eric W. Biederman, (Thu Sep 23, 1:45 am)
[PATCH 1/8] ns: proc files for namespace naming policy., Eric W. Biederman, (Thu Sep 23, 1:46 am)
[PATCH 2/8] ns: Introduce the setns syscall, Eric W. Biederman, (Thu Sep 23, 1:46 am)
[PATCH 3/8] ns proc: Add support for the network namespace., Eric W. Biederman, (Thu Sep 23, 1:47 am)
[PATCH 4/8] ns proc: Add support for the uts namespace, Eric W. Biederman, (Thu Sep 23, 1:48 am)
[PATCH 6/8] ns proc: Add support for the mount namespace, Eric W. Biederman, (Thu Sep 23, 1:50 am)
[PATCH 7/8] net: Allow setting the network namespace by fd, Eric W. Biederman, (Thu Sep 23, 1:51 am)
[PATCH 8/8] net: Implement socketat., Eric W. Biederman, (Thu Sep 23, 1:51 am)
Re: [PATCH 8/8] net: Implement socketat., Pavel Emelyanov, (Thu Sep 23, 1:56 am)
Re: [PATCH 8/8] net: Implement socketat., jamal, (Thu Sep 23, 4:19 am)
Re: [PATCH 8/8] net: Implement socketat., Pavel Emelyanov, (Thu Sep 23, 4:33 am)
Re: [PATCH 8/8] net: Implement socketat., jamal, (Thu Sep 23, 4:40 am)
Re: [PATCH 8/8] net: Implement socketat., Pavel Emelyanov, (Thu Sep 23, 4:53 am)
Re: [PATCH 8/8] net: Implement socketat., jamal, (Thu Sep 23, 5:11 am)
Re: [PATCH 8/8] net: Implement socketat., Pavel Emelyanov, (Thu Sep 23, 5:34 am)
Re: [PATCH 8/8] net: Implement socketat., Eric W. Biederman, (Thu Sep 23, 8:00 am)
Re: [PATCH 7/8] net: Allow setting the network namespace by fd, Eric W. Biederman, (Thu Sep 23, 8:14 am)
Re: [ABI REVIEW][PATCH 0/8] Namespace file descriptors, David Lamparter, (Thu Sep 23, 8:18 am)
Re: [PATCH 3/8] ns proc: Add support for the network names ..., Eric W. Biederman, (Thu Sep 23, 9:00 am)
Re: [PATCH 7/8] net: Allow setting the network namespace by fd, Eric W. Biederman, (Thu Sep 23, 9:03 am)
Re: [PATCH 7/8] net: Allow setting the network namespace by fd, Eric W. Biederman, (Thu Sep 23, 9:16 am)
Re: [ABI REVIEW][PATCH 0/8] Namespace file descriptors, Eric W. Biederman, (Thu Sep 23, 9:32 am)
Re: [ABI REVIEW][PATCH 0/8] Namespace file descriptors, Andrew Lutomirski, (Fri Sep 24, 6:02 am)
Re: [ABI REVIEW][PATCH 0/8] Namespace file descriptors, Eric W. Biederman, (Fri Sep 24, 10:06 am)
Re: [PATCH 8/8] net: Implement socketat., Daniel Lezcano, (Sat Oct 2, 2:13 pm)
Re: [PATCH 8/8] net: Implement socketat., jamal, (Sun Oct 3, 6:44 am)
Re: [PATCH 8/8] net: Implement socketat., Daniel Lezcano, (Mon Oct 4, 3:13 am)
Re: [PATCH 8/8] net: Implement socketat., Eric W. Biederman, (Mon Oct 4, 12:07 pm)
Re: netns patches WAS( Re: [PATCH 8/8] net: Implement sock ..., Eric W. Biederman, (Tue Oct 26, 5:27 pm)