]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Label master key file
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 13 Apr 2016 15:17:35 +0000 (17:17 +0200)
committerCole Robinson <crobinso@redhat.com>
Fri, 15 Apr 2016 16:15:28 +0000 (12:15 -0400)
commit744d74fafd0048c01a2b5cc18d1b03917ece8886
treea41905287b63d9990910b074f3bd55736c35b7ce
parent00307b5d8211a0206a57aa634e016c886d375746
qemu: Label master key file

When creating the master key, we used mode 0600 (which we should) but
because we were creating it as root, the file is not readable by any
qemu running as non-root.  Fortunately, it's just a matter of labelling
the file.  We are generating the file path few times already, so let's
label it in the same function that has access to the path already.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c