[maemo-developers] No subject
From:Date: Tue Aug 2 10:58:14 EEST 2011
- Previous message: No subject
- 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<mailto:maemo-developers-bounces at ma= emo.org> [maemo-developers-bounces at maemo.org<mailto:maemo-developers-bounce= s at maemo.org>] on behalf of ext Felipe Crochik [felipe at crochik.com<mailto:fe= lipe at crochik.com>] Sent: Saturday, November 05, 2011 10:23 PM To: maemo-developers at maemo.org<mailto: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_19A208251C4CAD4BB734996C26342720A0CAF6008AM1MPN1014mgdn_ 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;">I don't know what the problem was, but<br> <br> - Cellular does not appear to be limited. you just have to ask it (anyone c= an request it, even unknown origin)<br> <br> - upgrade/reinstall same package with different manifest should work just f= ine (if it started to work after remove, then something else is going on)<b= r> <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"divRpF63467"><font color=3D"#000000" f= ace=3D"Tahoma" size=3D"2"><b>From:</b> ext Felipe Crochik [felipe at crochik.c= om]<br> <b>Sent:</b> Sunday, November 06, 2011 3:58 PM<br> <b>To:</b> Savela Markku (EXT-VTT/Helsinki)<br> <b>Cc:</b> maemo-developers at maemo.org<br> <b>Subject:</b> Re: Aegis/Harmattan - how to add permission?<br> </font><br> </div> <div></div> <div>Surprisingly enough I actually had found the csd-call.conf file and tr= ied adding the Cellular credential. It didn't work when I first tried and t= hen I found a document on the harmattan-sdk web site that stated something = like: access to Cellular is restricted to applications where the source is com.nokia.maemo. <br> <br> Also, because the error message was somewhat misleading I assumed "Cel= lular" hadn't worked. After your email I checked with "accli"= ; my application on the device and Cellular was not included. This is just = speculation but I think that to update aegis for a package you may need to first remove the previous package or there is some issue w= ith Qt creator packaging or deployment when just the aegis file was changed= (of course, it may also have been something I did wrong or didn't do :) )<= br> <br> I deleted the debian folder on my project, rebuilt everything, removed the = package from the device, uploaded a new one and installed it using dpkg and= now it works.<br> <br> Thanks, <br> Felipe<br> <br> <div class=3D"gmail_quote">On Sun, Nov 6, 2011 at 3:09 AM, <span dir=3D"ltr= "><<a href=3D"mailto:Ext-Markku.Savela at nokia.com" target=3D"_blank">Ext-= Markku.Savela at nokia.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <div> <div style=3D"direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); fon= t-size: 10pt;">
- Previous message: No subject
- Next message: No subject
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]