← Back to team overview

ubuntu-phone team mailing list archive

QGeoPositionSource & AppArmor

 

Hi,

I just had another go with my location based app and noticed that the apparmor 
policy group "location" doesn't seem to be enough for creating a 
PositionSource in QML. When trying to create one, the app terminates with the 
following message:

terminate called after throwing an instance of 'std::runtime_error'
  what():  An AppArmor policy prevents this sender from sending this message 
to this recipient, 0 matched rules; type="method_call", sender="(null)" 
(inactive) interface="org.freedesktop.DBus" member="Hello" error 
name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)

I did some research in the policy files and came across this file, which I 
believe should be one dictating permissions for my app:

/var/lib/apparmor/profiles/click_com.ubuntu.developer.mzanetti.getmewheels2_getmewheels2_1.3

This file, however, contains the following section:

  # Allow access to see if there is a session bus around
  dbus (send)
       bus=session
       path=/org/freedesktop/DBus
       interface=org.freedesktop.DBus
       member=Hello
       peer=(name=org.freedesktop.DBus),

So it seems to me that exactly what AppArmor complains about is explicitly 
allowed in the config. As the error message doesn't really specify which bus, I 
tried inserting the same section using "bus=system", still nothing.

Can anyone point me in the right direction how to debug this further? Or is 
this already a known issue?

Thanks,
Michael



Follow ups