On Thu, 2010-08-12 at 09:07 +0200, Javier Fernandez Garcia-Boente wrote:
> 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.

You should be considered to be at the console (policy at_console=true)
to get access to connman.  Are you testing from a terminal inside the
SDK?

(CCing Elliot, who knows far more about the SDK than I do)

Ross
-- 
Intel Open Source Technology Centre
http://oss.intel.com/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
GeoClue mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/geoclue

Reply via email to