libvirt/src/lxc
Gao feng 8d63af22de libvirt: lxc: don't mkdir when selinux is disabled
libvirt lxc will fail to start when selinux is disabled.
error: Failed to start domain noroot
error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=b9873916-3516-c199-8112-1592ff694a9e LIBVIRT_LXC_UUID=b9873916-3516-c199-8112-1592ff694a9e LIBVIRT_LXC_NAME=noroot /bin/sh
2013-01-09 11:04:05.384+0000: 1: info : libvirt version: 1.0.1
2013-01-09 11:04:05.384+0000: 1: error : lxcContainerMountBasicFS:546 : Failed to mkdir /sys/fs/selinux: No such file or directory
2013-01-09 11:04:05.384+0000: 7536: info : libvirt version: 1.0.1
2013-01-09 11:04:05.384+0000: 7536: error : virLXCControllerRun:1466 : error receiving signal from container: Input/output error
2013-01-09 11:04:05.404+0000: 7536: error : virCommandWait:2287 : internal error Child process (ip link del veth1) unexpected exit status 1: Cannot find device "veth1"

fix this problem by checking if selinuxfs is mounted
in host before we try to create dir /sys/fs/selinux.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
2013-01-15 12:01:22 -07:00
..
libvirtd_lxc.aug Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_cgroup.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
lxc_cgroup.h Rename hostusb.{c,h} to virusb.{c,h} 2012-12-21 11:17:13 +00:00
lxc_conf.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
lxc_conf.h Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
lxc_container.c libvirt: lxc: don't mkdir when selinux is disabled 2013-01-15 12:01:22 -07:00
lxc_container.h Convert capabilities / domain_conf to use virArch 2012-12-18 16:53:03 +00:00
lxc_controller.c Rename HAVE_GNUTLS to WITH_GNUTLS 2013-01-14 13:26:47 +00:00
lxc_domain.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
lxc_domain.h Store initpid in the domain status XML for LXC 2012-11-27 17:02:22 +00:00
lxc_driver.c Add implementation of virDomainLxcOpenNamespace to LXC driver 2013-01-15 18:16:54 +00:00
lxc_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
lxc_fuse.c Rename HAVE_FUSE to WITH_FUSE 2013-01-14 13:26:47 +00:00
lxc_fuse.h Rename HAVE_FUSE to WITH_FUSE 2013-01-14 13:26:47 +00:00
lxc_hostdev.c Fix virLXCPrepareHostDevices method 2013-01-07 18:16:54 +00:00
lxc_hostdev.h Add support for USB host device passthrough with LXC 2012-12-17 17:50:51 +00:00
lxc_monitor_protocol.x Rename lxc_protocol.x to lxc_monitor_protocol.x 2013-01-08 09:21:08 +00:00
lxc_monitor.c Rename lxc_protocol.x to lxc_monitor_protocol.x 2013-01-08 09:21:08 +00:00
lxc_monitor.h Rename lxc_protocol.x to lxc_monitor_protocol.x 2013-01-08 09:21:08 +00:00
lxc_process.c Rename virterror.c virterror_internal.h to virerror.{c,h} 2012-12-21 11:19:50 +00:00
lxc_process.h Refactor LXC NIC creation to allow reuse by hotplug code 2012-12-17 17:50:51 +00:00
lxc.conf Standardize whitespace used in example config files 2012-05-28 10:59:13 +01:00
test_libvirtd_lxc.aug.in Autogenerate augeas test case from default config files 2012-05-28 11:07:12 +01:00