]> xenbits.xensource.com Git - libvirt.git/commit
chown kernel/initrd before spawning qemu
authorMark McLoughlin <markmc@redhat.com>
Thu, 6 Aug 2009 14:14:19 +0000 (15:14 +0100)
committerMark McLoughlin <markmc@redhat.com>
Mon, 10 Aug 2009 08:00:01 +0000 (09:00 +0100)
commitc42b39784534930791d1feb3de859d85a7848168
tree566cae018229ec3f9133658fbe3379c947d58254
parentf2144a30635138e971a328ef85f5467ebfa1d947
chown kernel/initrd before spawning qemu

If we're running qemu unprivileged, we need to chown any supplied kernel
or initrd before spawning it.

* src/qemu_driver.c: rename qemuDomainSetDiskOwnership() to
  qemuDomainSetFileOwnership(), pass it a path string instead of a disk
  definition and use it for chowning the kernel/initrd in
  qemuDomainSetAllDeviceOwnership()
src/qemu_driver.c