Problem accessing HAL data using python-dbus on RHEL 5

Solution Verified - Updated -


  • Below python code is run to list HAL data for parsing:
import dbus
bus = dbus.SystemBus()
halDict = []
hal_manager_object = bus.get_object('org.freedesktop.Hal', '/org/freedesktop/Hal/Manager')
for device in hal_manager_object.get_dbus_method('GetAllDevices', 'org.freedesktop.Hal.Manager')():
    dev = bus.get_object('org.freedesktop.Hal', device)
    interface = dbus.Interface(dev, dbus_interface='org.freedesktop.Hal.Device')
  • Trying to list HAL devices accessing a method through 'get_dbus_method' through proxy object by specifying interface as in the above script throws the following traceback on execution:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib64/python2.4/site-packages/dbus/", line 25, in __call__
    ret = self._proxy_method (*args, **keywords)
  File "/usr/lib64/python2.4/site-packages/dbus/", line 102, in __call__
    reply_message = self._connection.send_with_reply_and_block(message, timeout)
  File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block
dbus_bindings.DBusException: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "(unset)" member "get_dbus_method" error name "(unset)" destination "org.freedesktop.Hal")
  • Same works fine on RHEL-6


  • Red Hat Enterprise Linux
  • dbus
  • dbus-python

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content