nss-mymachines: avoid connecting to dbus from inside dbus-daemon
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Aug 2016 22:35:05 +0000 (00:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Aug 2016 22:52:00 +0000 (00:52 +0200)
commit6e32c03ed87e5dfd3857013e909e48b5e61564c1
tree1721440ab440942ec23ea100e0002a85ecb9b591
parentfd63e712b2025d235ce4bfbb512fada10e2690b5
nss-mymachines: avoid connecting to dbus from inside dbus-daemon

Inspired from the new logic in nss-systemd let's make sure we don't end up
deadlocking in nss-mymachines either in case dbus-daemon tries to a look up a
name and we want to connect to the bus.

This case is much simpler though, as there's no point in resolving virtual
machine UIDs by dbus-daemon as those should never be able to connect to the
host's busses.
src/nss-mymachines/nss-mymachines.c