dbus: allow systemd to receive activation requests
This commit is contained in:
parent
d122948d6f
commit
af25ec12e3
|
@ -397,6 +397,8 @@ static DBusHandlerResult api_bus_message_filter(DBusConnection *connection, DBu
|
|||
if (r < 0) {
|
||||
const char *id, *text;
|
||||
|
||||
log_warning("D-Bus activation failed for %s: %s", name, strerror(-r));
|
||||
|
||||
if (!(reply = dbus_message_new_signal("/org/freedesktop/systemd1", "org.freedesktop.systemd1.Activator", "ActivationFailure")))
|
||||
goto oom;
|
||||
|
||||
|
|
|
@ -16,8 +16,13 @@
|
|||
<policy user="root">
|
||||
<allow own="org.freedesktop.systemd1"/>
|
||||
|
||||
<!-- Root clients can do everything -->
|
||||
<allow send_destination="org.freedesktop.systemd1"/>
|
||||
<allow receive_sender="org.freedesktop.systemd1"/>
|
||||
|
||||
<!-- systemd may receive activator requests -->
|
||||
<allow receive_interface="org.freedesktop.systemd1.Activator"
|
||||
receive_member="ActivationRequest"/>
|
||||
</policy>
|
||||
|
||||
<policy context="default">
|
||||
|
|
Loading…
Reference in a new issue