chiark / gitweb /
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 7e6d65e..a14dbda 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 377e001..831df59 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">