Connman support for GeoClue inside Meego
Javier Fernandez Garcia-Boente
jfernandez at igalia.com
Thu Aug 12 00:07:20 PDT 2010
On Thu, 2010-08-12 at 07:42 +0100, Ross Burton wrote:
>
> You don't need to be root to talk to connman over DBus... what is the
> actual problem you are having?
The error shown on terminal when executed the connmand test as user is
the following:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied:
Rejected send message, 2 matched rules; type="method_call",
sender=":1.3" (uid=1000 pid=3994 comm="/usr/bin/python)
interface="org.moblin.connman.Manager" member="GetProperties" error
name="(unset)" requested_reply=0 destination=":1.2" (uid=0 pid=3990
comm="connmand))
The same exception is shown when I run the SDK Simulator and trying to
enable a connection. The problem seems to be the policy established in
/etc/dbus-1/system.d/connman.conf:
<busconfig>
<policy user="root">
<allow own="org.moblin.connman"/>
<allow send_destination="org.moblin.connman"/>
<allow send_interface="org.moblin.connman.Agent"/>
<allow send_interface="org.moblin.connman.Counter"/>
</policy>
<policy at_console="true">
<allow send_destination="org.moblin.connman"/>
</policy>
<policy context="default">
<deny send_destination="org.moblin.connman"/>
</policy>
</busconfig>
If I change the policy "context" to "allow", I'm able to execute the
tests as normal user.
Anyway, I guess this problem appears only in my environment, not sue why
though.
--
Javier Fernández García-Boente
http://blogs.igalia.com/jfernandez/
www.igalia.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/geoclue/attachments/20100812/8f2556a7/attachment.pgp>
More information about the GeoClue
mailing list