[maemo-developers] No subject

From:
Date: Tue Aug 2 10:58:14 EEST 2011
face, so taking<br>
a look at /etc/dbus-1/system.d/aegis.csd-call.conf [1], by quick look it se=
ems it only needs<br>
&quot;Cellular&quot;, so you just need to add the line<br>
<br>
&nbsp;&nbsp; &lt;credential name=3D&quot;Cellular&quot; /&gt;<br>
<br>
in the manifest request section.<br>
<br>
[1] The prefix &quot;aegis.&quot; in DBus policy configuration just tells t=
hat this policy is automatically<br>
generated from the manifest of csd-call. It uses a new keyword &quot;cred&q=
uot;, which is just a generic<br>
way to reference any credential in the linux credentials set (not just &quo=
t;user&quot; and &quot;group&quot;,<br>
like standard DBus daemon).<br>
<br>
<br>
<div style=3D"font-family: Times New Roman; color: rgb(0, 0, 0); font-size:=
 16px;">
<hr>
<div style=3D"direction: ltr;"><font color=3D"#000000" face=3D"Tahoma" size=
=3D"2"><b>From:</b>
<a href=3D"mailto:maemo-developers-bounces at maemo.org" target=3D"_blank">mae=
mo-developers-bounces at maemo.org</a> [<a href=3D"mailto:maemo-developers-bou=
nces at maemo.org" target=3D"_blank">maemo-developers-bounces at maemo.org</a>] o=
n behalf of ext Felipe Crochik [<a href=3D"mailto:felipe at crochik.com" targe=
t=3D"_blank">felipe at crochik.com</a>]<br>
<b>Sent:</b> Saturday, November 05, 2011 10:23 PM<br>
<b>To:</b> <a href=3D"mailto:maemo-developers at maemo.org" target=3D"_blank">=
maemo-developers at maemo.org</a><br>
<b>Subject:</b> Aegis/Harmattan - how to add permission?<br>
</font><br>
</div>
<div>
<div></div>
<div class=3D"h5">
<div></div>
<div>I am trying to get my application to start a call using the good old d=
bus com.nokia.csd.Call.CreateWidth method but, of course, can't get aegis t=
o grant me access to it.<br>
<br>
When I start it from QtCreator it works just fine. When I try to start the =
application on the phone I get:<br>
<br>
QDBusMessage(type=3DError, service=3D&quot;&quot;, error name=3D&quot;org.f=
reedesktop.DBus.Error.AccessDenied&quot;, error message=3D&quot;Rejected se=
nd message, 2 matched rules; type=3D&quot;method_call&quot;, sender=3D&quot=
;:1.2976&quot; (uid=3D29999 pid=3D9857 comm=3D&quot;/opt/callout/bin/callou=
t &quot;) interface=3D&quot;com.nokia.csd.Call&quot;
 member=3D&quot;CreateWith&quot; error name=3D&quot;(unset)&quot; requested=
_reply=3D0 destination=3D&quot;com.nokia.csd.Call&quot; (uid=3D30000 pid=3D=
634 comm=3D&quot;/usr/sbin/csd -z -p call autorej=3D0,autoans=3D0,ecall&quo=
t;))&quot;, signature=3D&quot;&quot;, contents=3D() )<br>
<br>
Qt creator was &quot;nice enough&quot; to create the aegis file for my pack=
age 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 tel=
ls me: &lt;!--<span style=3D"color: rgb(192, 192, 192);">
</span>Application<span style=3D"color: rgb(192, 192, 192);"> </span>access=
es<span style=3D"color: rgb(192, 192, 192);">
</span>DBus<span style=3D"color: rgb(192, 192, 192);"> </span>libraries<spa=
n style=3D"color: rgb(192, 192, 192);">
</span>directly.<span style=3D"color: rgb(192, 192, 192);"> </span>--&gt; g=
o figure out! :)<br>
<br>
Any hints?<br>
<br>
Thanks, <br>
Felipe<br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>

--_000_19A208251C4CAD4BB734996C26342720A0CAF6008AM1MPN1014mgdn_--
More information about the maemo-developers mailing list