dbus: allow anon dbus connections at hipox machine
authorSteffen Sledz <sledz@dresearch.de>
Thu, 7 Oct 2010 17:42:13 +0000 (19:42 +0200)
committerSteffen Sledz <sledz@dresearch.de>
Thu, 7 Oct 2010 17:42:13 +0000 (19:42 +0200)
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
recipes/dbus/dbus/anon.patch [new file with mode: 0644]
recipes/dbus/dbus_1.2.24.bb
recipes/dbus/dbus_1.3.1.bb

diff --git a/recipes/dbus/dbus/anon.patch b/recipes/dbus/dbus/anon.patch
new file mode 100644 (file)
index 0000000..c9bf7bf
--- /dev/null
@@ -0,0 +1,13 @@
+diff -Naur dbus-1.2.1.orig/dbus/dbus-transport.c dbus-1.2.1/dbus/dbus-transport.c
+--- dbus-1.2.1.orig/dbus/dbus-transport.c      2008-09-16 15:10:02.000000000 +0000
++++ dbus-1.2.1/dbus/dbus-transport.c   2008-09-16 15:10:10.000000000 +0000
+@@ -747,6 +747,9 @@
+           dbus_bool_t allow;
+           DBusCredentials *auth_identity;
+           
++          // allow anonymous connections
++          _dbus_transport_set_allow_anonymous(transport, TRUE);
++
+           auth_identity = _dbus_auth_get_identity (transport->auth);
+           _dbus_assert (auth_identity != NULL);
+           
index 5ef1fef..7582551 100644 (file)
@@ -12,6 +12,8 @@ SRC_URI = "\
   file://reuseaddr02.patch \
 "
 
+SRC_URI_append_hipox = "file://anon.patch"
+
 SRC_URI[dbus.md5sum] = "565346cecd9cfecf1463540c6086cc2c"
 SRC_URI[dbus.sha256sum] = "f12c748f4a703655e3d4c3db94cdf5a752a0cd0b36958c715804373bd3595c48"
 
index b30bdab..735fde3 100644 (file)
@@ -13,6 +13,8 @@ SRC_URI = "\
   file://reuseaddr02.patch \
 "            
 
+SRC_URI_append_hipox = "file://anon.patch"
+
 # This is a development version of dbus that will lead to 1.4.0
 DEFAULT_PREFERENCE = "-1"