]> xenbits.xensource.com Git - libvirt.git/commit
Error out on missing machine type in machine configs
authorJán Tomko <jtomko@redhat.com>
Thu, 11 Feb 2016 09:55:07 +0000 (10:55 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 18 Feb 2016 15:19:39 +0000 (16:19 +0100)
commit55e6d8cd9eac7eb2aaa4d221585e9402cf7269d5
treeac9a4e59c3397d47f5421179e04928da751e921f
parentb4c6fa4418ee89ad52116420461fde5b58919452
Error out on missing machine type in machine configs

Commit f1a89a8 allowed parsing configs from /etc/libvirt
without validating the emulator capabilities.

Check for the presence of os->type.machine even if the
VIR_DOMAIN_DEF_PARSE_SKIP_OSTYPE_CHECKS flag is set,
otherwise the daemon can crash on carelessly crafted input
in the config directory.

https://bugzilla.redhat.com/show_bug.cgi?id=1267256
src/conf/domain_conf.c