QML example attached. Save to /tmp/test-accounts.qml and generate an apparmor profile with: $ aa-easyprof --policy-vendor=ubuntu --policy-version=1.0 --template=ubuntu-sdk --policy-groups=accounts,networking --template-var='@{APP_PKGNAME}=test-accounts' --template-var='@{CLICK_DIR}=/tmp' --template-var='@{APP_VERSION}=1.0' --template-var='@{APP_ID_DBUS}=test_2daccounts' --read-path='/tmp/test-accounts.qml' --profile-name=test-accounts > /tmp/test-accounts.profile
Then launch under confinement with: $ sudo apparmor_parser -r /tmp/test-accounts.profile && aa-exec-click -p test-accounts -- qmlscene /tmp/test-accounts.qml
launch on its own with: $ qmlscene /tmp/test-accounts.qml
QML example attached. Save to /tmp/test- accounts. qml and generate an apparmor profile with: vendor= ubuntu --policy- version= 1.0 --template= ubuntu- sdk --policy- groups= accounts, networking --template- var='@{ APP_PKGNAME} =test-accounts' --template- var='@{ CLICK_DIR} =/tmp' --template- var='@{ APP_VERSION} =1.0' --template- var='@{ APP_ID_ DBUS}=test_ 2daccounts' --read- path='/ tmp/test- accounts. qml' --profile- name=test- accounts > /tmp/test- accounts. profile
$ aa-easyprof --policy-
Then launch under confinement with: accounts. profile && aa-exec-click -p test-accounts -- qmlscene /tmp/test- accounts. qml
$ sudo apparmor_parser -r /tmp/test-
launch on its own with: accounts. qml
$ qmlscene /tmp/test-