summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-11-03 11:13:25 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-11-26 14:30:16 +0000
commit0d968ad715475a1660779bcdd2c5b38ad63db4cf (patch)
treec294730f74b5b2189f6e39d7c76853f9361d93cf /cfg.mk
parenta48539c0139747c07ddb31600d0a3a803f2278be (diff)
downloadlibvirt-0d968ad715475a1660779bcdd2c5b38ad63db4cf.tar.gz
qemu: add support for sending QEMU stdout/stderr to virtlogd
Currently the QEMU stdout/stderr streams are written directly to a regular file (eg /var/log/libvirt/qemu/$GUEST.log). While those can be rotated by logrotate (using copytruncate option) this is not very efficient. It also leaves open a window of opportunity for a compromised/broken QEMU to DOS the host filesystem by writing lots of text to stdout/stderr. This makes it possible to connect the stdout/stderr file handles to a pipe that is provided by virtlogd. The virtlogd daemon will read from this pipe and write data to the log file, performing file rotation whenever a pre-determined size limit is reached. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 8530e1789c..c58e38837f 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -775,7 +775,7 @@ sc_prohibit_gettext_markup:
# lower-level code must not include higher-level headers.
cross_dirs=$(patsubst $(srcdir)/src/%.,%,$(wildcard $(srcdir)/src/*/.))
cross_dirs_re=($(subst / ,/|,$(cross_dirs)))
-mid_dirs=access|conf|cpu|locking|network|node_device|rpc|security|storage
+mid_dirs=access|conf|cpu|locking|logging|network|node_device|rpc|security|storage
sc_prohibit_cross_inclusion:
@for dir in $(cross_dirs); do \
case $$dir in \