]> xenbits.xensource.com Git - libvirt.git/commit
storage_file: create: Create new images with write permission bit
authorPeter Krempa <pkrempa@redhat.com>
Mon, 11 May 2020 13:38:28 +0000 (15:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 May 2020 04:56:09 +0000 (06:56 +0200)
commit20939b037c37789ddca54c18862fb45b4b41740f
treed4fe9882e89e5f8f7545fb2803ca26b2f7717650
parentfe12fb4132c48da4223b9cf74465b6358586ebcc
storage_file: create: Create new images with write permission bit

The 'Create' API of the two storage file backends is used only on
code-paths where we need to format the image after creating an empty
file. Since the DAC security driver only modifies the owner of the file
and not the mode we need to create all files which are going to be
formatted with the write bit set for the user.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_file_fs.c
src/storage/storage_file_gluster.c