Skip to content

Network namespace manipulation with file descriptors

Eric W. Biederman containers linux-arch linux-fsdevel lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 41 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ns: proc files for namespace naming policy.fs/proc/Makefile fs/proc/base.c fs/proc/inode.c +3 more+241 -113 replies
2/7ns: Introduce the setns syscallkernel/nsproxy.c+37 -06 replies
3/7ns proc: Add support for the network namespace.fs/proc/namespaces.c include/linux/proc_fs.h net/core/net_namespace.c+35 -04 replies
4/7ns proc: Add support for the uts namespacefs/proc/namespaces.c include/linux/proc_fs.h kernel/utsname.c+43 -01 reply
5/7ns proc: Add support for the ipc namespacefs/proc/namespaces.c include/linux/proc_fs.h ipc/namespace.c+41 -01 reply
6/7net: Allow setting the network namespace by fdinclude/linux/if_link.h include/net/net_namespace.h net/core/net_namespace.c +1 more+37 -31 reply
7/7ns: Wire up the setns system callarch/alpha/include/asm/unistd.h arch/alpha/kernel/systbls.S arch/arm/include/asm/unistd.h +46 more+81 -307 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMike FrysingerDaniel LezcanoDavid S. MillerTony Luck
SeriesA-b A-b
1/7A-b
2/7A-b
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] Network namespace manipulation with file descriptors

Today there are something things you can use namespaces to implement but the userspace code is unnecessarily complex and fragile because of limitations of the kernel interfaces.

This patchset addresses the user interface limitations by introducing proc files you can open to get file descriptors that keep alive and refer to your a tasks namespaces. Those file descriptors can be passed to the new setns system call or the NET_NS_FD argument in netlink messages.

This patchset is sufficient to implement linux support for named network namespaces in iproute allowing vpns to be isolated in a network namespace where you don't have to worry about them conflicting with the rest of your network.

This patchset is almost sufficient to remove the need for a daemon in a container to allow you to log in. Unfortunately a few of the namespaces are not ready to merge yet so I have left them out.

Arch maintainers could you look over patch 7 and verify I have wired up this new system call correctly.

These changes are also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-nsfd.git