core: refuse dbus activation if dbus is not running
authorMike Yuan <me@yhndnzj.com>
Mon, 8 May 2023 16:07:45 +0000 (00:07 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 8 May 2023 17:42:25 +0000 (01:42 +0800)
commit53964fd26b4a01191609ffc064aa8ccccd28e377
treece6b975ba328f637c1f17d9ff831bd4401d197d7
parente8863150653931ae2ffc91757623f179ce763628
core: refuse dbus activation if dbus is not running

dbus-broker issues StartUnit directly for activation requests,
so let's add a check on bus state in bus_unit_queue_job to refuse
that if dbus is not running.

Replaces #27570
Closes #26799
src/core/dbus-unit.c
src/core/dbus.c