I am trying to run dbus commands remotely. On the remote machine I have
edited system.conf to listen on port 55556.
I can run connmand dbus commands remotely.
I have edited list-modems to the following:
bus=dbus.bus.BusConnection("tcp:host=10.42.243.96,port=55556")
I get the following when I run the script:
ERROR:dbus.proxies:Introspect error on :1.1:/:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied:
Rejected send message, 2 matched rules; type="method_call",
sender=":1.7"
(pid=0 comm="") interface="org.freedesktop.DBus.Introspectable"
member="Introspect" error name="(unset)"
requested_reply="0"
destination=":1.1" (uid=0 pid=4352 comm="ofonod ")
Traceback (most recent call last):
File "./list-modems", line 11, in <module>
modems = manager.GetModems()
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in
__call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in
__call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in
call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied:
Rejected send message, 2 matched rules; type="method_call",
sender=":1.7"
(pid=0 comm="") interface="org.ofono.Manager"
member="GetModems" error
name="(unset)" requested_reply="0" destination=":1.1" (uid=0
pid=4352
comm="ofonod ")
Any suggestions as to what is happening?
Thanks
Homam
Show replies by date