[libvirt] [PATCH v2 2/2] m4: Add warning when running QEMU as root

Ján Tomko jtomko at redhat.com
Tue Mar 26 16:27:47 UTC 2019


On Tue, Mar 26, 2019 at 04:24:00PM +0000, Daniel P. Berrangé wrote:
>On Tue, Mar 26, 2019 at 05:06:16PM +0100, Andrea Bolognani wrote:
>> Running QEMU as root is a pretty bad idea, so try to make the
>> user aware of that as part of the configure summary.
>>
>> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
>> ---
>>  m4/virt-driver-qemu.m4 | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/m4/virt-driver-qemu.m4 b/m4/virt-driver-qemu.m4
>> index 5d4ac66a4b..a8b9fe54b3 100644
>> --- a/m4/virt-driver-qemu.m4
>> +++ b/m4/virt-driver-qemu.m4
>> @@ -104,5 +104,10 @@ AC_DEFUN([LIBVIRT_DRIVER_RESULT_QEMU], [
>>  ])
>>
>>  AC_DEFUN([LIBVIRT_RESULT_QEMU_PRIVILEGES], [
>> -  LIBVIRT_RESULT([QEMU], [$QEMU_USER:$QEMU_GROUP])
>> +  if test "$QEMU_USER" = "root"; then
>> +    LIBVIRT_RESULT([QEMU], [$QEMU_USER:$QEMU_GROUP],
>> +                   [!!! running QEMU as root is strongly discouraged !!!])
>
>Am I evil for suggesting use of blink :-P
>

Yes.

Jano

>      [\033[31;5m running QEMU as root is strongly discouraged \033[0m])
>
>
>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 :|
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- 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/20190326/f989dac8/attachment-0001.sig>


More information about the libvir-list mailing list