[libvirt PATCH] logging: allow max_len=0 to disable log rollover
Peter Krempa
pkrempa at redhat.com
Tue Oct 13 09:40:38 UTC 2020
On Tue, Oct 13, 2020 at 10:21:58 +0100, Daniel Berrange wrote:
> Currently setting max_len=0 causes virtlogd to spin in a busy loop. It
> is natural to allow this to disable log rollover which can be useful for
> developers debugging things.
>
> Note disabling rollover exposes the host to denial of service from a
> malicious guest, so must be used with care.
>
> Closes https://gitlab.com/libvirt/libvirt/-/issues/85
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> src/logging/virtlogd.conf | 4 ++++
> src/util/virrotatingfile.c | 48 +++++++++++++++++++++-----------------
> 2 files changed, 30 insertions(+), 22 deletions(-)
Reviewed-by: Peter Krempa <pkrempa at redhat.com>
More information about the libvir-list
mailing list