From: Lennart Poettering Date: Wed, 11 Jun 2014 08:36:13 +0000 (+0200) Subject: journald: create /run/log/journal with the correct access modes X-Git-Tag: v214~11 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fc1d70af2101e16c9e6f3c5bfd5ab315ee9e6dae;p=elogind.git journald: create /run/log/journal with the correct access modes --- diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 3211773c2..eda5dcf7e 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -990,7 +990,10 @@ static int system_journal_open(Server *s) { /* OK, we really need the runtime journal, so create * it if necessary. */ - (void) mkdir_parents(fn, 0755); + (void) mkdir("/run/log", 0755); + (void) mkdir("/run/log/journal", 0755); + (void) mkdir_parents(fn, 0750); + r = journal_file_open_reliably(fn, O_RDWR|O_CREAT, 0640, s->compress, false, &s->runtime_metrics, s->mmap, NULL, &s->runtime_journal); free(fn);