dbus-sysdeps-unix.h

Peter Kümmel syntheticpp at gmx.net
Mon Sep 18 00:32:50 PDT 2006


Havoc Pennington wrote:
> Ralf Habacker wrote:
>> 2284: Sending error reply org.freedesktop.DBus.Error.Failed "No user
>> ID known for connection, cannot determine security policy
> ...
>> Any idea ?
> 
> This is exactly what I meant would break - it's upset that
> dbus_connection_get_unix_user doesn't work anymore.
> 

Yes, by disabling your "hack-protection"


$ svn diff dbus-transport.c dbus-connection.c
Index: dbus-transport.c
===================================================================
--- dbus-transport.c    (revision 326)
+++ dbus-transport.c    (working copy)
@@ -392,7 +392,7 @@
    */
   dbus_bool_t on_windows = FALSE;
 #ifdef DBUS_WIN
-  on_windows = TRUE;
+  //on_windows = TRUE;
 #endif

   if (transport->authenticated)
Index: dbus-connection.c
===================================================================
--- dbus-connection.c   (revision 325)
+++ dbus-connection.c   (working copy)
@@ -4310,7 +4310,7 @@
    * just want to be sure we don't ship with this API returning
    * some weird internal fake uid for 1.0
    */
-  return FALSE;
+  //return FALSE;
 #endif

   CONNECTION_LOCK (connection);
@@ -4349,7 +4349,7 @@
    * just want to be sure we don't ship with this API returning
    * some weird internal fake uid for 1.0
    */
-  return FALSE;
+  //return FALSE;
 #endif

   CONNECTION_LOCK (connection);



it doesn't break any more.


> This error should be changed so it isn't a fatal error, instead the bus
> should apply any default policies (user=* instead of user=someone) and
> continue normally. It's probably very simple, grep for that error
> message to find the relevant code.
> 
> Havoc
> 
> 


-- 
Peter Kümmel


More information about the dbus mailing list