chiark / gitweb /
journald: create /run/log/journal with the correct access modes
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Jun 2014 08:36:13 +0000 (10:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Jun 2014 08:36:13 +0000 (10:36 +0200)
src/journal/journald-server.c

index 3211773c27b97933fc286271e2194f7bb6e6437f..eda5dcf7e956cfd9d53fec319f65b8b06a0ac729 100644 (file)
@@ -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);