chiark / gitweb /
journald: avoid NSS in journald
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 21:42:36 +0000 (16:42 -0500)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Sep 2013 21:55:37 +0000 (16:55 -0500)
commit4608af4333d0f7f5f8e3bc632801b04ef07d246d
treec8614f1e3cf783bf6e969c9d485fdd528f2c5b37
parent265ffa1e05acf12769a64d0734fd2472237c03c5
journald: avoid NSS in journald

In order to avoid a deadlock between journald looking up the
"systemd-journal" group name, and nscd (or anyother NSS backing daemon)
logging something back to the journal avoid all NSS in journald the same
way as we avoid it from PID 1.

With this change we rely on the kernel file system logic to adjust the
group of created journal files via the SETGID bit on the journal
directory. To ensure that it is always set, even after the user created
it with a simply "mkdir" on the shell we fix it up via tmpfiles on boot.
src/journal/journald-server.c
src/journal/journald-server.h
tmpfiles.d/systemd.conf