mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
m4: Add warning when running QEMU as root
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@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
29cd1877ac
commit
e5e23e3fb9
@ -112,5 +112,10 @@ AC_DEFUN([LIBVIRT_DRIVER_RESULT_QEMU], [
|
|||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_RESULT_QEMU_PRIVILEGES], [
|
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 !!!])
|
||||||
|
else
|
||||||
|
LIBVIRT_RESULT([QEMU], [$QEMU_USER:$QEMU_GROUP])
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user