[PATCH 1/5] storage_file: create: Create new images with write permission bit

Ján Tomko jtomko at redhat.com
Mon May 11 17:11:56 UTC 2020


On a Monday in 2020, Peter Krempa wrote:
>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 at redhat.com>
>---
> src/storage/storage_file_fs.c      | 6 +-----
> src/storage/storage_file_gluster.c | 6 +-----
> 2 files changed, 2 insertions(+), 10 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200511/8ababb69/attachment-0001.sig>


More information about the libvir-list mailing list