diff options
author | Havoc Pennington <hp@redhat.com> | 2003-03-24 17:30:47 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-03-24 17:30:47 +0000 |
commit | 44fff656885ac32e319feb98fd0d06680d602977 (patch) | |
tree | 6555f2d142f02c0da09ac5e388ad7ee73702f6d9 /bus/connection.c | |
parent | c3af5ccdbc22e8990d04ec2f89ad1f2e053655e9 (diff) | |
download | dbus-44fff656885ac32e319feb98fd0d06680d602977.tar.gz |
2003-03-24 Havoc Pennington <hp@pobox.com>
* bus/connection.c (bus_connections_setup_connection): set up
the "can this user connect" function, but it always returns
TRUE until we have a config file parser so we can have a config
file that allows connections.
Diffstat (limited to 'bus/connection.c')
-rw-r--r-- | bus/connection.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bus/connection.c b/bus/connection.c index 773ed5ef..4cb98f65 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -159,6 +159,9 @@ bus_connection_disconnected (DBusConnection *connection) NULL)) _dbus_assert_not_reached ("setting timeout functions to NULL failed"); + dbus_connection_set_unix_user_function (connection, + NULL, NULL, NULL); + bus_connection_remove_transactions (connection); _dbus_list_remove (&d->connections->list, connection); @@ -245,6 +248,8 @@ allow_user_function (DBusConnection *connection, d = BUS_CONNECTION_DATA (connection); _dbus_assert (d != NULL); + + return TRUE; /* FIXME - this is just until we can parse a config file */ return bus_context_allow_user (d->connections->context, uid); } @@ -375,6 +380,10 @@ bus_connections_setup_connection (BusConnections *connections, connection, NULL)) goto out; + + dbus_connection_set_unix_user_function (connection, + allow_user_function, + NULL, NULL); /* Setup the connection with the dispatcher */ if (!bus_dispatch_add_connection (connection)) @@ -408,6 +417,9 @@ bus_connections_setup_connection (BusConnections *connections, connection, NULL)) _dbus_assert_not_reached ("setting timeout functions to NULL failed"); + + dbus_connection_set_unix_user_function (connection, + NULL, NULL, NULL); } return retval; |