×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    3

    [Solved] Aegis on N950 problem:<for> refers to 'XXX', not installed by that package

    I am trying to use GPS on N950. My code looks like this:
    Code:
    class Gps: public QObject {
    	Q_OBJECT
    public:
    	Gps(QObject *parent = 0) : QObject(parent) {
    		qDebug() << "Creating new GPS object";
    		QGeoPositionInfoSource *source = QGeoPositionInfoSource::createDefaultSource(this);
    		if (source) {
    			connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),
    					this, SLOT(positionUpdated(QGeoPositionInfo)));
    			source->startUpdates();
    			qDebug() << "GPS initialized";
    		} else {
    			qDebug() << "Could not initialize GPS";
    		}
    	}
    
    private slots:
    	void positionUpdated(const QGeoPositionInfo &info) {
    		qDebug() << "Position updated: " << info;
    	}
    };
    When binary is executed on N950 it outputs to stderr:
    Code:
    Creating new GPS object 
    
    DBus error:
    org.freedesktop.DBus.Error.AccessDenied
    Rejected send message, 2 matched rules; type="method_call", sender=":1.348" (uid=29999 pid=9153 comm="/usr/bin/cloudgps ") interface="com.nokia.positioningd.client" member="registerListener" error name="(unset)" requested_reply=0 destination="com.nokia.positioningd.client" (uid=29999 pid=1106 comm="/usr/bin/positioningd "))
    
    DBus error:
    org.freedesktop.DBus.Error.AccessDenied
    Rejected send message, 2 matched rules; type="method_call", sender=":1.348" (uid=29999 pid=9153 comm="/usr/bin/cloudgps ") interface="com.nokia.positioningd.client" member="configSession" error name="(unset)" requested_reply=0 destination="com.nokia.positioningd.client" (uid=29999 pid=1106 comm="/usr/bin/positioningd "))
    GPS initialized
    I think those error messages are related to Harmattan security. So I added following aegis manifest to my package:

    Code:
    <aegis>
      <request policy="add">
        <credential name="Location"/>
        <for path="/usr/bin/cloudgps">
      </request>       
    </aegis>
    And now during package installation there are some warnings:
    Code:
    Package cloudgps: <for> refers to '/usr/bin/cloudgps', not installed by that package -- ignored
    No digsigsums file
    file /var/lib/dpkg/tmp.ci/digsigsums cannot be opened
    Selecting previously deselected package cloudgps.
    (Reading database ... 35787 files and directories currently installed.)
    Unpacking cloudgps (from cloudgps_0.5.8_armel.deb) ...
    No digsigsums file
    Setting up cloudgps (0.5.8) ...
    Processing triggers for hicolor-icon-theme ...
    Processing triggers for desktop-file-utils ...
    aegis-installing cloudgps (from '')
    The package does install /usr/bin/cloudgps binary and I have no idea why aegis is complaining that it is not. The file is there after installing the package. Also dpkg -c can confirms that:
    Code:
    dpkg -c cloudgps_0.5.8_armel.deb | grep /usr/bin/cloudgps
    -rwxr-xr-x root/root    224540 2011-08-20 23:21 ./usr/bin/cloudgps
    I am stuck. Please give me a hint how to overcome this issue. Thanks in advance.
    Last edited by dwaradzyn; 2011-11-06 at 09:59. Reason: title change

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    506

    Re: Aegis on N950 problem:<for> refers to 'XXX', not installed by that package -- ign

    Quote Originally Posted by dwaradzyn View Post
    So I added following aegis manifest to my package:
    .
    where exactly you have added rules?
    Symbian & Qt developer. http://vladest.org

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    3

    Re: Aegis on N950 problem:<for> refers to 'XXX', not installed by that package -- ign

    Quote Originally Posted by vladest View Post
    where exactly you have added rules?
    I have added this as the last rule:
    Code:
    	aegis-deb-add -control debian/cloudgps/DEBIAN/control .. debian/cloudgps.aegis=_aegis
    The aegis manifest lands in deb package and it is processed during install so I think there is no problem with this rule.

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    3

    Re: Aegis on N950 problem:<for> refers to 'XXX', not installed by that package -- ign

    I solved this problem quite a while ago. Could not post because this boards were down few times I tried to use them.

    Anyway the main reason why this aegis configuration did not work was:
    Code:
    No digsigsums file
    In order to make it work I changed my rules to be like this:
    Code:
        aegis-deb-util --add-digsigsums=/usr/bin/cloudgps cloudgps                                                                                                                                            
         aegis-deb-add -control debian/cloudgps/DEBIAN/control .. debian/cloudgps.aegis=_aegis

Similar Threads

  1. Replies: 1
    Last Post: 2010-11-29, 18:50
  2. Replies: 0
    Last Post: 2005-01-13, 07:48
  3. Replies: 0
    Last Post: 2005-01-13, 07:47
  4. << Can we control handset's info-red by J2ME? >>
    By Pacess in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-28, 08:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×