diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-20 00:57:50 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-20 00:57:50 (GMT) |
commit | 41710698a04c20e566fcb2c152802c1e38cb6316 (patch) | |
tree | 2ac4007972081640419fceb63116664fb6642236 /config/modulesets/patches/telepathy-gabble-olpc-no-dbus-uid-check.patch | |
parent | 9f2bbbbebfa7b6f2de89520c6f591549d1ae2667 (diff) |
Patches needs to be under modulesets so that jhbuild can find them.
Diffstat (limited to 'config/modulesets/patches/telepathy-gabble-olpc-no-dbus-uid-check.patch')
-rw-r--r-- | config/modulesets/patches/telepathy-gabble-olpc-no-dbus-uid-check.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/config/modulesets/patches/telepathy-gabble-olpc-no-dbus-uid-check.patch b/config/modulesets/patches/telepathy-gabble-olpc-no-dbus-uid-check.patch new file mode 100644 index 0000000..d9a3d93 --- /dev/null +++ b/config/modulesets/patches/telepathy-gabble-olpc-no-dbus-uid-check.patch @@ -0,0 +1,33 @@ +diff -rN -up old-telepathy-gabble/src/tube-dbus.c new-telepathy-gabble/src/tube-dbus.c +--- old-telepathy-gabble/src/tube-dbus.c 2007-11-15 13:39:37.923570564 -0500 ++++ new-telepathy-gabble/src/tube-dbus.c 2007-11-15 13:39:37.923570564 -0500 +@@ -216,6 +216,14 @@ out: + return DBUS_HANDLER_RESULT_HANDLED; + } + ++static dbus_bool_t ++allow_all_connections (DBusConnection *conn, ++ unsigned long uid, ++ void *data) ++{ ++ return TRUE; ++} ++ + static void + new_connection_cb (DBusServer *server, + DBusConnection *conn, +@@ -234,6 +242,13 @@ new_connection_cb (DBusServer *server, + dbus_connection_ref (conn); + dbus_connection_setup_with_g_main (conn, NULL); + dbus_connection_add_filter (conn, filter_cb, tube, NULL); ++ ++ /* OLPC have a security system making applications running under ++ * a different uid than Gabble. So we have to explicitely allow connections ++ * from all uid. */ ++ dbus_connection_set_unix_user_function (conn, allow_all_connections, ++ NULL, NULL); ++ + priv->dbus_conn = conn; + } + + |