Re: [PATCH 1/2] qemu_shim: Allow other users to enter the root dir

2020-03-05 Thread Andrea Bolognani
On Fri, 2020-02-28 at 16:56 +0100, Michal Privoznik wrote: > +++ b/src/qemu/qemu_shim.c > @@ -158,6 +158,12 @@ int main(int argc, char **argv) > return 1; > } > tmproot = true; > + > +if (chmod(root, S_IRWXU | S_IXGRP | S_IXOTH) < 0) { I think this is

[PATCH 1/2] qemu_shim: Allow other users to enter the root dir

2020-02-28 Thread Michal Privoznik
When virt-qemu-run is ran without any root directory specified on the command line, a temporary directory is made and used instead. But since we are using g_dir_make_tmp() to create the directory it is going to have 0700 mode. So even though we create the whole directory structure under it and