summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-08-09 15:49:32 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-08-09 08:49:32 -0400
commite73529f9dd878cc449f5271f749929ebd9e93d88 (patch)
tree9517f062d2326f87d8f9fe7d998b9d45ccfa5487 /src/journal
parentac741b47dc259c190f6897a8cf581f2c3b73e18e (diff)
sd-journal: watch logs below container's /{var,run}/log/journal (instead of the /) (#3934)
Fixes #3927.
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/sd-journal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 75a0ffb49b..2a3824d0e8 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -2290,6 +2290,8 @@ _public_ int sd_journal_get_fd(sd_journal *j) {
* inotify */
if (j->no_new_files)
r = add_current_paths(j);
+ else if (j->flags & SD_JOURNAL_OS_ROOT)
+ r = add_search_paths(j);
else if (j->toplevel_fd >= 0)
r = add_root_directory(j, NULL, false);
else if (j->path)