Systemd/src/nss-systemd
Lennart Poettering fd63e712b2 core: bypass dynamic user lookups from dbus-daemon
dbus-daemon does NSS name look-ups in order to enforce its bus policy. This
might dead-lock if an NSS module use wants to use D-Bus for the look-up itself,
like our nss-systemd does. Let's work around this by bypassing bus
communication in the NSS module if we run inside of dbus-daemon. To make this
work we keep a bit of extra state in /run/systemd/dynamic-uid/ so that we don't
have to consult the bus, but can still resolve the names.

Note that the normal codepath continues to be via the bus, so that resolving
works from all mount namespaces and is subject to authentication, as before.

This is a bit dirty, but not too dirty, as dbus daemon is kinda special anyway
for PID 1.
2016-08-19 00:50:24 +02:00
..
Makefile nss: add new "nss-systemd" NSS module for mapping dynamic users 2016-07-22 15:53:45 +02:00
nss-systemd.c core: bypass dynamic user lookups from dbus-daemon 2016-08-19 00:50:24 +02:00
nss-systemd.sym nss: add new "nss-systemd" NSS module for mapping dynamic users 2016-07-22 15:53:45 +02:00