libvirt/src/lxc
Martin Kletzander e4200bbb9d lxc: Don't crash by forgetting to ref transient domains
So commit 306b3a8504 tried mimicking behaviour of commit 540c339a25, but
added a virObjectRef(vm) only after virDomainObjListAdd() in
lxcDomainDefineXMLFlags() and not in lxcDomainCreateXMLWithFiles().
That way undefining a domain that was started with different XML than
defined will leave the domain object in a state with not enough
references to then remove it.  Hence any lxcDomainDestroyFlags() called
afterwards crashes the daemon.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1351057

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
2016-07-24 09:08:20 +02:00
..
libvirtd_lxc.aug Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_cgroup.c filesystem: adds possibility to use storage pool as fs source 2016-07-18 23:39:56 +03:00
lxc_cgroup.h lxc: report veth device indexes to systemd 2015-01-27 13:57:02 +00:00
lxc_conf.c lxc: convert to typesafe virConf accessors 2016-07-12 09:58:21 +01:00
lxc_conf.h lxc: convert to typesafe virConf accessors 2016-07-12 09:58:21 +01:00
lxc_container.c lxc: make container's init process session leader 2016-07-22 09:40:10 +01:00
lxc_container.h lxc: Inherit namespace feature 2015-08-26 11:28:30 +01:00
lxc_controller.c lxc: errors after the handshake won't be reported 2016-07-19 16:23:25 +02:00
lxc_domain.c lxc: completely rework reference counting 2016-05-24 16:54:01 +02:00
lxc_domain.h lxc: completely rework reference counting 2016-05-24 16:54:01 +02:00
lxc_driver.c lxc: Don't crash by forgetting to ref transient domains 2016-07-24 09:08:20 +02:00
lxc_driver.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00
lxc_fuse.c conf: Rename virDomainDefGetMemoryActual to virDomainDefGetMemoryTotal 2016-06-17 10:39:40 +02:00
lxc_fuse.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
lxc_hostdev.c Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_hostdev.h Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_monitor_protocol.x Unify int types handling in protocol files 2016-01-11 19:56:06 +03:00
lxc_monitor.c Indent top-level labels by one space in src/lxc/ 2014-03-25 14:58:39 +01:00
lxc_monitor.h Fix generation of systemtap probes for RPC protocols 2013-03-14 12:42:22 +00:00
lxc_native.c filesystem: adds possibility to use storage pool as fs source 2016-07-18 23:39:56 +03:00
lxc_native.h lxc: use virDomainDefPostParse for parsing LXC config string 2015-12-09 12:59:02 +01:00
lxc_process.c fs: Fix '<' comparison of value produced by logical not '!' 2016-07-19 09:38:40 +02:00
lxc_process.h lxc: support <interface type='ethernet'> 2016-05-24 15:21:05 -04: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