Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch
diff options
context:
space:
mode:
authorMarco 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)
commit41710698a04c20e566fcb2c152802c1e38cb6316 (patch)
tree2ac4007972081640419fceb63116664fb6642236 /config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch
parent9f2bbbbebfa7b6f2de89520c6f591549d1ae2667 (diff)
Patches needs to be under modulesets so that jhbuild can find them.
Diffstat (limited to 'config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch')
-rw-r--r--config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch b/config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch
new file mode 100644
index 0000000..d876cd8
--- /dev/null
+++ b/config/modulesets/patches/telepathy-salut-olpc-no-dbus-uid-check.patch
@@ -0,0 +1,33 @@
+diff -rN -up old-telepathy-salut/src/tube-dbus.c new-telepathy-salut/src/tube-dbus.c
+--- old-telepathy-salut/src/tube-dbus.c 2007-11-15 13:33:51.902677010 -0500
++++ new-telepathy-salut/src/tube-dbus.c 2007-11-15 13:33:51.902677010 -0500
+@@ -252,6 +252,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,
+@@ -270,6 +278,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 Salut. 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;
+ }
+
+