On image 60, when I launch the app I see (this is also what is seen in comment #3):
Dec 12 20:25:51 ubuntu-phablet kernel: [ 449.802198] type=1400 audit(1386879951.569:119): apparmor="DENIED" operation="mkdir" parent=1394 profile="com.ubuntu.developer.daker.rad-io_rad.io_0.7" name=2F686F6D652F706861626C65742F2E6C6F63616C2F73686172652F51742050726F6A6563742F pid=2857 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
name=2F686F6D652F706861626C65742F2E6C6F63616C2F73686172652F51742050726F6A6563742F decodes to:
$ aa-decode 2F686F6D652F706861626C65742F2E6C6F63616C2F73686172652F51742050726F6A6563742F
Decoded: /home/phablet/.local/share/Qt Project/
rad.io.qml correctly has this in MainView:
applicationName: "com.ubuntu.developer.daker.rad-io"
as for the other apparmor denials:
* /run/shm/lttng-ust-wait-5 - I'm not seeing this on grouper with surface flinger. I believe it is harmless though.
* /sys/devices/virtual/timed_output/vibrator/enable - this is fixed in apparmor-easyprof-ubuntu 1.0.43 and should not affect the usability of the app
* /run/user/32011/confined/com.ubuntu.developer.daker.rad-io.Ti6827 - I was able to confirm that TMPDIR is not being set correctly. If a start with aa-exec-click, it correctly set TMPDIR to '/run/user/32011/confined/com.ubuntu.developer.daker.rad-io', but when launching under upstart-app-launch, it is being set to '/run/user/32011/confined/'. I saw another time that upstart-app-launch set it is '/run/user/32011/confined//home/phablet/.local/share'
I am going to assign to upstart-app-launch for now. Since it isn't setting TMPDIR correctly, it might not be setting other variables correctly.
On image 60, when I launch the app I see (this is also what is seen in comment #3): 1.569:119) : apparmor="DENIED" operation="mkdir" parent=1394 profile= "com.ubuntu. developer. daker.rad- io_rad. io_0.7" name=2F686F6D65 2F706861626C657 42F2E6C6F63616C 2F73686172652F5 1742050726F6A65 63742F pid=2857 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
Dec 12 20:25:51 ubuntu-phablet kernel: [ 449.802198] type=1400 audit(138687995
name=2F686F6D65 2F706861626C657 42F2E6C6F63616C 2F73686172652F5 1742050726F6A65 63742F decodes to: 861626C65742F2E 6C6F63616C2F736 86172652F517420 50726F6A6563742 F .local/ share/Qt Project/
$ aa-decode 2F686F6D652F706
Decoded: /home/phablet/
rad.io.qml correctly has this in MainView: developer. daker.rad- io"
applicationName: "com.ubuntu.
as for the other apparmor denials: lttng-ust- wait-5 - I'm not seeing this on grouper with surface flinger. I believe it is harmless though. virtual/ timed_output/ vibrator/ enable - this is fixed in apparmor- easyprof- ubuntu 1.0.43 and should not affect the usability of the app 32011/confined/ com.ubuntu. developer. daker.rad- io.Ti6827 - I was able to confirm that TMPDIR is not being set correctly. If a start with aa-exec-click, it correctly set TMPDIR to '/run/user/ 32011/confined/ com.ubuntu. developer. daker.rad- io', but when launching under upstart-app-launch, it is being set to '/run/user/ 32011/confined/ '. I saw another time that upstart-app-launch set it is '/run/user/ 32011/confined/ /home/phablet/ .local/ share'
* /run/shm/
* /sys/devices/
* /run/user/
I am going to assign to upstart-app-launch for now. Since it isn't setting TMPDIR correctly, it might not be setting other variables correctly.
My testing: ubuntu. com/com. ubuntu. developer. daker.rad- io/current/ foo with:
1. Create /opt/click.
#!/bin/sh
echo "TMPDIR=$TMPDIR"
echo "APP_ID=$APP_ID"
2. chmod 755 /opt/click. ubuntu. com/com. ubuntu. developer. daker.rad- io/current/ foo
3. adjust /home/phablet/ .cache/ upstart- app-launch/ desktop/ com.ubuntu. developer. daker.rad- io_rad. io_0.7. desktop to have: click.ubuntu. com/com. ubuntu. developer. daker.rad- io/current/ foo
Exec=/opt/
4. run upstart-app-launch: com.ubuntu. developer. daker.rad- io_rad. io_0.7 ; sleep 5 ; tail /home/phablet/ .cache/ upstart/ application- click-com. ubuntu. developer. daker.rad- io_rad. io_0.7. log ust-wait- 5-32011 (in get_wait_shm() at lttng-ust- comm.c: 715) comm.c: 715) ust-wait- 5-32011 (in get_wait_shm() at lttng-ust- comm.c: 715) /run/user/ 32011/confined/ /home/phablet/ .local/ share com.ubuntu. developer. daker.rad- io_rad. io_0.7
$ start application APP_ID=
application start/running, process 3733
libust[3765/3768]: Error: Error opening shm /lttng-
libust[3765/3767]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-
libust[3765/3768]: Error: Error opening shm /lttng-
TMPDIR=
APP_ID=
5. run aa-exec-click: developer. daker.rad- io_rad. io_0.7 -- /opt/click. ubuntu. com/com. ubuntu. developer. daker.rad- io/current/ foo /run/user/ 32011/confined/ com.ubuntu. developer. daker.rad- io com.ubuntu. developer. daker.rad- io_rad. io_0.7
$ aa-exec-click -p com.ubuntu.
TMPDIR=
APP_ID=