]> err.no Git - systemd/commitdiff
dbus: allow systemd to receive activation requests
authorLennart Poettering <lennart@poettering.net>
Mon, 7 Jun 2010 02:15:37 +0000 (04:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 7 Jun 2010 02:15:37 +0000 (04:15 +0200)
src/dbus.c
src/org.freedesktop.systemd1.conf

index 7e6d65e2c8b5bce680ce86b5e8d5dd9ab9ba37e3..a14dbda9d2ae1bab93a10c5e6de42dd652d8486d 100644 (file)
@@ -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;
 
index 377e001dee70eff348ba3d10b0f8cf13f6cdd731..831df59d53b2a88ed8646187f623d7f34fa49a14 100644 (file)
         <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">