[maemo-developers] No subject
From:Date: Tue Aug 2 10:58:14 EEST 2011
- Previous message: Aegis - Upstart script not working in Harmattan
- Next message: No subject
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
face, so taking a look at /etc/dbus-1/system.d/aegis.csd-call.conf [1], by quick look it se= ems it only needs "Cellular", so you just need to add the line <credential name=3D"Cellular" /> in the manifest request section. [1] The prefix "aegis." in DBus policy configuration just tells that this p= olicy is automatically generated from the manifest of csd-call. It uses a new keyword "cred", whic= h is just a generic way to reference any credential in the linux credentials set (not just "use= r" and "group", like standard DBus daemon). ________________________________ From: maemo-developers-bounces at maemo.org [maemo-developers-bounces at maemo.or= g] on behalf of ext Felipe Crochik [felipe at crochik.com] Sent: Saturday, November 05, 2011 10:23 PM To: maemo-developers at 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 c= om.nokia.csd.Call.CreateWidth method but, of course, can't get aegis to gra= nt 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=3DError, service=3D"", error name=3D"org.freedesktop.DBus= .Error.AccessDenied", error message=3D"Rejected send message, 2 matched rul= es; type=3D"method_call", sender=3D":1.2976" (uid=3D29999 pid=3D9857 comm= =3D"/opt/callout/bin/callout ") interface=3D"com.nokia.csd.Call" member=3D"= CreateWith" error name=3D"(unset)" requested_reply=3D0 destination=3D"com.n= okia.csd.Call" (uid=3D30000 pid=3D634 comm=3D"/usr/sbin/csd -z -p call auto= rej=3D0,autoans=3D0,ecall"))", signature=3D"", contents=3D() ) Qt creator was "nice enough" to create the aegis file for my package and ev= en include the credentials to allow my app to access the address books usin= g 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 --_000_19A208251C4CAD4BB734996C26342720A0C997008AM1MPN1014mgdn_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html dir=3D"ltr"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <style id=3D"owaParaStyle" type=3D"text/css">P {margin-top:0;margin-bottom:= 0;}</style> </head> <body ocsi=3D"0" fpstyle=3D"1"> <div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: = 10pt;">From error message, it looks you are trying to use com.nokia.csd.Cal= l interface, 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> "Cellular", so you just need to add the line<br> <br> <credential name=3D"Cellular" /><br> <br> in the manifest request section.<br> <br> [1] The prefix "aegis." 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 "cred&q= uot;, which is just a generic<br> way to reference any credential in the linux credentials set (not just &quo= t;user" and "group",<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 tabindex=3D"-1"> <div style=3D"direction: ltr;" id=3D"divRpF201797"><font face=3D"Tahoma" si= ze=3D"2" color=3D"#000000"><b>From:</b> maemo-developers-bounces at maemo.org = [maemo-developers-bounces at maemo.org] on behalf of ext Felipe Crochik [felip= e at crochik.com]<br> <b>Sent:</b> Saturday, November 05, 2011 10:23 PM<br> <b>To:</b> maemo-developers at maemo.org<br> <b>Subject:</b> Aegis/Harmattan - how to add permission?<br> </font><br> </div> <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"", error name=3D"org.f= reedesktop.DBus.Error.AccessDenied", error message=3D"Rejected se= nd message, 2 matched rules; type=3D"method_call", sender=3D"= ;:1.2976" (uid=3D29999 pid=3D9857 comm=3D"/opt/callout/bin/callou= t ") interface=3D"com.nokia.csd.Call" member=3D"CreateWith" error name=3D"(unset)" requested= _reply=3D0 destination=3D"com.nokia.csd.Call" (uid=3D30000 pid=3D= 634 comm=3D"/usr/sbin/csd -z -p call autorej=3D0,autoans=3D0,ecall&quo= t;))", signature=3D"", contents=3D() )<br> <br> Qt creator was "nice enough" 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: <!--<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>--> g= o figure out! :)<br> <br> Any hints?<br> <br> Thanks, <br> Felipe<br> <br> <br> </div> </div> </div> </body> </html> --_000_19A208251C4CAD4BB734996C26342720A0C997008AM1MPN1014mgdn_--
- Previous message: Aegis - Upstart script not working in Harmattan
- Next message: No subject
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]