I am trying to send DBus messages via Ubuntu Touch C++ application. With configuring default template (no error with unconfined
) for Apparmor file my application is getting following error as reply:
QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.AccessDenied", error message="An AppArmor policy prevents this sender from sending this message to this recipient, 0 matched rules; type="method_call", sender=":1.278" (uid=32011 pid=28575 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ s") interface="org.bluez.Manager" member="DefaultAdapter" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=824 comm="/usr/sbin/bluetoothd ")", signature="", contents=([]) )
phablet@ubuntu-phablet:/etc/apparmor.d$ aa-easyprof --policy-vendor=ubuntu --policy-version=1.2 --list-templates
default
ubuntu-push-helper
ubuntu-scope-network
ubuntu-sdk
ubuntu-webapp
unconfined
My question: Do I have to configure Apparmor template with value unconfined
even though the Ubuntu review will reject the upload package (and will do a manual review probably)? Or is there any way to create an own template for Ubuntu Touch click packages?