Displaying 2 results from an estimated 2 matches for "fallback_gid".
Did you mean:
callback_id
2015 Nov 08
2
Re: virDomainCoreDumpWithFormat files created as root
2015 Nov 18
0
Re: virDomainCoreDumpWithFormat files created as root
...ile is being created and dynamic ownership is set.
>
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index a2cc002..1b47dc6 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -2932,6 +2932,11 @@ qemuOpenFileAs(uid_t fallback_uid, gid_t
> fallback_gid,
> if (path_shared <= 0 || dynamicOwnership)
> vfoflags |= VIR_FILE_OPEN_FORCE_OWNER;
>
> + if (dynamicOwnership) {
> + uid = fallback_uid;
> + gid = fallback_gid;
> + }
> +
> if (stat(path, &sb) =...