]> git.ipfire.org Git - thirdparty/libvirt.git/commit
[LXC] Detect support for NETNS in lxc driver initialization
authorDan Smith <danms@us.ibm.com>
Thu, 26 Jun 2008 16:05:02 +0000 (16:05 +0000)
committerDan Smith <danms@us.ibm.com>
Thu, 26 Jun 2008 16:05:02 +0000 (16:05 +0000)
commit99ded85f45c7c64018aeab9896fa2a49cd1772f9
tree3d26faaf6119bc55f3203c390560da942f45007f
parentf3c355077113174601bfe2b7c028402c64883cd5
[LXC] Detect support for NETNS in lxc driver initialization

Allow check for containers support to be done without CLONE_NEWNET, and then
determine support on the fly by checking for iproute2 support and a
successful clone(CLONE_NEWNET).  This lets us set a flag for later, as well
as not completely disable LXC support on a system without NETNS support.
src/lxc_conf.h
src/lxc_driver.c