aboutsummaryrefslogtreecommitdiff
path: root/qemu-coroutine-int.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-04-12 14:01:03 +0200
committerKevin Wolf <kwolf@redhat.com>2012-05-10 10:32:11 +0200
commit63090dac3a7c5fe02b4285cf2e5fb7017d2c7b0e (patch)
treeb81ebbe1d44f8e7f19d843faa765ab38f13c1b19 /qemu-coroutine-int.h
parent469ef350e1a8b5715e620dbf6f6115628e5b566e (diff)
block: open backing file as read-only when probing for size
bdrv_img_create will temporarily open the backing file to probe its size. However, this could be done with a read-write open if the wrong flags are passed to bdrv_img_create. Since there is really no documentation on what flags can be passed, assume that bdrv_img_create receives the flags with which the new image will be opened; sanitize them when opening the backing file. Reported-by: Eric Blake <eblake@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-coroutine-int.h')
0 files changed, 0 insertions, 0 deletions