[MacPorts] #26453: DBus connections are broken under root user.

MacPorts noreply at macports.org
Sun Sep 12 12:35:35 PDT 2010


#26453: DBus connections are broken under root user.
------------------------------------------+---------------------------------
 Reporter:  andyjstormont@…               |       Owner:  macports-tickets@…                   
     Type:  defect                        |      Status:  new                                  
 Priority:  High                          |   Milestone:                                       
Component:  ports                         |     Version:  1.9.1                                
 Keywords:                                |        Port:                                       
------------------------------------------+---------------------------------
 I'm trying to port PackageKit to OSX and I've come across an annoying
 problem.  When a program running as root attempts to open a connection to
 the system bus DBus prints out some gobbledegook about the session daemon
 (not what I want) and returns an 'not enough memory'.  When I run the
 program as an unprivileged user there are no dbus errors but the program
 cannot function correctly since it was designed to run as root.

 Example with PackageKit:

 andy$ sudo /opt/local/libexec/packagekitd -vTI:21:26:25 FI:egg-dbus-
 monitor.c   FN:egg_dbus_monitor_assign,136
  - connecting new DBUS_BUS_SYSTEM monitor
 Dynamic session lookup supported but failed: launchd did not provide a
 socket path, verify that org.freedesktop.dbus-session.plist is loaded!
 TI:21:26:25     FI:egg-dbus-monitor.c   FN:egg_dbus_monitor_assign,140
  - Cannot connect to bus: Not enough memory

 * (packagekitd:25722): CRITICAL **: dbus_g_connection_get_connection:
 assertion `gconnection' failed
 process 25722: arguments to dbus_bus_name_has_owner() were incorrect,
 assertion "connection != NULL" failed in file dbus-bus.c line 1278.
 This is normally a bug in some application using the D-Bus library.
   D-Bus not built with -rdynamic so unable to print a backtrace
 Abort trap

 So there is a problem with dbus when running under root user which may or
 may not be limited to the system bus.  Please help :(

-- 
Ticket URL: <http://trac.macports.org/ticket/26453>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list