[libvirt] [PATCH v2 3/3] qemu: command: Override HOME variable for system QEMU
Daniel P. Berrangé
berrange at redhat.com
Fri Mar 15 10:21:01 UTC 2019
On Fri, Mar 08, 2019 at 01:00:49PM +0100, Erik Skultety wrote:
> By default, qemu user's home dir points to '/' which shouldn't be used
> at all. We therefore pass the HOME variable from the current variable
> iff not running as SUID, which means that for systemd we never set it.
> This patch makes sure, that for system QEMU this is always set to
> libDir/<driver>, session mode is left untouched.
>
> Signed-off-by: Erik Skultety <eskultet at redhat.com>
> ---
> src/qemu/qemu_command.c | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list