libvirt/src/logging
Daniel P. Berrangé 6938cd8830 logging: allow max_len=0 to disable log rollover
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
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-10-13 10:51:43 +01:00
..
log_daemon_config.c logging: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02:00
log_daemon_config.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_daemon_dispatch.c logging: use G_GNUC_UNUSED 2019-10-15 11:25:23 +02:00
log_daemon_dispatch.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_daemon.c logging: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02:00
log_daemon.h logging: Replace virMutex with GMutex 2020-08-21 11:34:23 +01:00
log_handler.c logging: fix endless loop on EOF 2020-10-02 09:15:53 +03:00
log_handler.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_manager.c logging: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02:00
log_manager.h src/logging: no need to include log_protocol.h in log_manager.h 2020-08-04 13:28:22 +02:00
log_protocol.x log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
meson.build src/meson: add missing augeas tests 2020-08-18 16:35:56 +02:00
test_virtlogd.aug.in build: use @CONFIG@ instead of ::CONFIG:: in augeas tests 2019-08-09 14:06:31 +01:00
virtlogd-admin.socket.in systemd: honour $runstatedir in socket unit files 2019-08-27 10:23:05 +01:00
virtlogd.aug src: fix word spell typos 2020-07-09 10:01:41 +02:00
virtlogd.conf logging: allow max_len=0 to disable log rollover 2020-10-13 10:51:43 +01:00
virtlogd.init.in Add virtlockd and virtlogd init scripts 2020-02-22 17:11:54 +01:00
virtlogd.service.in src: fix misc spelling errors reported by codespell 2020-10-05 10:28:41 +01:00
virtlogd.socket.in systemd: honour $runstatedir in socket unit files 2019-08-27 10:23:05 +01:00
virtlogd.sysconf systemd: Tweak existing sysconf files 2020-04-03 11:50:35 +02:00