]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-aa-helper should require <uuid> in XML
authorJamie Strandboge <jamie@canonical.com>
Thu, 11 Nov 2010 21:59:50 +0000 (14:59 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 11 Nov 2010 21:59:50 +0000 (14:59 -0700)
commit29318e177abd154850d3d030db1849461b425215
tree0543c0c3b81c9b90e3a817a297e2fb18bcedba9e
parent5288881344126f2766e5ca8d41c6395b67e356f6
virt-aa-helper should require <uuid> in XML

When <uuid> is not in the XML, a virUUIDGenerate() ends up being called which
is unnecessary and can lead to crashes if /dev/urandom isn't available
because virRandomInitialize() is not called within virt-aa-helper. This patch
adds verify_xpath_context() and updates caps_mockup() to use it.

Bug-Ubuntu: https://launchpad.net/bugs/672943
src/security/virt-aa-helper.c