]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: qemuOpenFileAs - set flag VIR_FILE_OPEN_FORCE_MODE
authorJohn Ferlan <jferlan@redhat.com>
Mon, 26 Jan 2015 19:28:25 +0000 (14:28 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 11 Feb 2015 12:29:29 +0000 (07:29 -0500)
commit92f09dab50599017b63c7e29c9bd12ee932175db
tree01499e687e8ef16e92c9ed5c6b9172cc5f9b0256
parent92d9114eacddba08da6347aa0eb286948da49961
qemu: qemuOpenFileAs - set flag VIR_FILE_OPEN_FORCE_MODE

In the event we're falling into the code that tries to create the file
in a forked environment (VIR_FILE_OPEN_FORK) we pass different mode bits,
but those are never set because the virFileOpenForceOwnerMode has a check
if the OPEN_FORCE_MODE bit is set before attempting to change the mode.

Since this is a special case it seems reasonable to set u+rw,g+rw,o
src/qemu/qemu_driver.c