driver: refuse to start the driver by name
This is a partial revert of
Following dbus-daemon, the driver is listed in ListActivatableNames(),
but StartServiceByName(org.freedesktop.DBus) will still fail.
@@ -969,9 +969,6 @@ static int driver_method_start_service_by_name(Peer *peer, CDVar *in_v, CDVar *o
if (flags)
return DRIVER_E_UNEXPECTED_FLAGS; /* XXX: should we ignore this silently? */
- if (!strcmp(service, "org.freedesktop.DBus")) {
- reply = DBUS_START_REPLY_ALREADY_RUNNING;
- } else {
name = name_registry_find_name(&peer->bus->names, service);
if (!name)
return DRIVER_E_NAME_NOT_ACTIVATABLE;
@@ -993,7 +990,6 @@ static int driver_method_start_service_by_name(Peer *peer, CDVar *in_v, CDVar *o
} else {
reply = DBUS_START_REPLY_ALREADY_RUNNING;
}
- }
c_dvar_write(out_v, "(u)", reply);
