module-dbus-protocol: Allow anyone to connect the daemon in system mode.

This commit is contained in:
Tanu Kaskinen 2009-06-20 10:17:46 +03:00
parent 3c6a0acc98
commit b152f3a052

View file

@ -148,7 +148,7 @@ static void connection_new_cb(DBusServer *dbus_server, DBusConnection *new_conne
return; return;
} }
if (s->type == SERVER_TYPE_TCP) { if (s->type == SERVER_TYPE_TCP || s->userdata->module->core->server_type == PA_SERVER_TYPE_SYSTEM) {
/* FIXME: Here we allow anyone from anywhere to access the server, /* FIXME: Here we allow anyone from anywhere to access the server,
* anonymously. Access control should be configurable. */ * anonymously. Access control should be configurable. */
dbus_connection_set_unix_user_function(new_connection, user_check_cb, NULL, NULL); dbus_connection_set_unix_user_function(new_connection, user_check_cb, NULL, NULL);