]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
Enable network namespace sharing in lxc-start
authorMarek Majkowski <marek@cloudflare.com>
Wed, 6 Nov 2013 23:16:33 +0000 (15:16 -0800)
committerMarek Majkowski <marek@cloudflare.com>
Wed, 6 Nov 2013 23:16:33 +0000 (15:16 -0800)
commit9f30a1908937fb62906e608f708bdec4fbdec1bc
treea8771234763ef57ef9af2afae2389fedc2a96c4f
parent9beb9ce0ef1c5975e922768afdf51dc39ca5b0b9
Enable network namespace sharing in lxc-start

Right now lxc-start always does one of two things: it creates
a new namespace or inherits it from the parent environment.
This patch adds a third option: share a namespace with another
container (actually: a process).

In some situations this is handy. For example by sharing a network
namespace it is possible to migrate services between containers
without (or with little) downtime.

This patch creates an infrastructure for inheriting any type
of namespace, but only the network namespace is supported for now.
src/lxc/arguments.h
src/lxc/conf.c
src/lxc/conf.h
src/lxc/lxc_start.c
src/lxc/start.c
src/lxc/start.h