>From error message, it looks you are trying to use com.nokia.csd.Call 
>interface, so taking
a look at /etc/dbus-1/system.d/aegis.csd-call.conf [1], by quick look it seems 
it only needs
"Cellular", so you just need to add the line

   <credential name="Cellular" />

in the manifest request section.

[1] The prefix "aegis." in DBus policy configuration just tells that this 
policy is automatically
generated from the manifest of csd-call. It uses a new keyword "cred", which is 
just a generic
way to reference any credential in the linux credentials set (not just "user" 
and "group",
like standard DBus daemon).


________________________________
From: maemo-developers-boun...@maemo.org [maemo-developers-boun...@maemo.org] 
on behalf of ext Felipe Crochik [fel...@crochik.com]
Sent: Saturday, November 05, 2011 10:23 PM
To: maemo-developers@maemo.org
Subject: Aegis/Harmattan - how to add permission?

I am trying to get my application to start a call using the good old dbus 
com.nokia.csd.Call.CreateWidth method but, of course, can't get aegis to grant 
me access to it.

When I start it from QtCreator it works just fine. When I try to start the 
application on the phone I get:

QDBusMessage(type=Error, service="", error 
name="org.freedesktop.DBus.Error.AccessDenied", error message="Rejected send 
message, 2 matched rules; type="method_call", sender=":1.2976" (uid=29999 
pid=9857 comm="/opt/callout/bin/callout ") interface="com.nokia.csd.Call" 
member="CreateWith" error name="(unset)" requested_reply=0 
destination="com.nokia.csd.Call" (uid=30000 pid=634 comm="/usr/sbin/csd -z -p 
call autorej=0,autoans=0,ecall"))", signature="", contents=() )

Qt creator was "nice enough" to create the aegis file for my package and even 
include the credentials to allow my app to access the address books using the 
mobility contacts but, as far as the dbus goes, it only tells me: <!-- 
Application accesses DBus libraries directly. --> go figure out! :)

Any hints?

Thanks,
Felipe


_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to