Desktop example ubuntu-clock-app is broken

Bug #1570435 reported by Daniel Holbach
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
Snappy Desktop Examples
Fix Released
Undecided
Unassigned

Bug Description

Desktop example ubuntu-clock-app is broken

QXcbConnection: Could not connect to display :0
Aborted (core dumped)

[23269.210298] audit: type=1400 audit(1460645877.282:66): apparmor="DENIED" operation="connect" profile="snap.ubuntu-clock-app.clock" pid=7647 comm="qmlscene" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/.X11-unix/X0" peer="unconfined"

Package:
http://bazaar.launchpad.net/~snappers/snappy-desktop-examples/trunk/files/head:/ubuntu-clock-app

David Planella (dpm)
tags: added: snapy-examples
tags: added: snappy-examples
removed: snapy-examples
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

It looks like you are plugging the unity7 interface (good). Interfaces weren't autoconnecting until snapd 1.9.2 which was just uploaded today. I tested the clock app just now and this denial is gone, though there are other denials.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Marking as fixed since the other issues are due to packaging.

Changed in snappy:
status: New → Fix Released
Revision history for this message
Daniel Holbach (dholbach) wrote :

kernel: [67239.454656] audit: type=1400 audit(1460648529.359:3105): apparmor="DENIED" operation="chmod" profile="snap.ubuntu-clock-app.clock" name="/var/cache/fontconfig/" pid=18439 comm="qmlscene" requested_mask="w" denied_mask="w" fsuid=1000 ouid=0
kernel: [67239.463592] audit: type=1400 audit(1460648529.367:3106): apparmor="DENIED" operation="chmod" profile="snap.ubuntu-clock-app.clock" name="/var/cache/fontconfig/" pid=18439 comm="qmlscene" requested_mask="w" denied_mask="w" fsuid=1000 ouid=0
kernel: [67239.672804] audit: type=1400 audit(1460648529.575:3107): apparmor="DENIED" operation="chmod" profile="snap.ubuntu-clock-app.clock" name="/var/cache/fontconfig/" pid=18439 comm="qmlscene" requested_mask="w" denied_mask="w" fsuid=1000 ouid=0
kernel: [67239.849176] audit: type=1400 audit(1460648529.751:3108): apparmor="DENIED" operation="chmod" profile="snap.ubuntu-clock-app.clock" name="/var/cache/fontconfig/" pid=18439 comm="qmlscene" requested_mask="w" denied_mask="w" fsuid=1000 ouid=0
kernel: [67239.935214] audit: type=1400 audit(1460648529.839:3109): apparmor="DENIED" operation="open" profile="snap.ubuntu-clock-app.clock" name="/usr/share/glib-2.0/schemas/gschemas.compiled" pid=18439 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Revision history for this message
Daniel Holbach (dholbach) wrote :

Apr 14 18:06:27 daydream kernel: [27379.159879] audit: type=1400 audit(1460649987.640:96): apparmor="DENIED" operation="connect" profile="snap.ubuntu-clock-app.clock" pid=1177 comm="qmlscene" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/.X11-unix/X0" peer="unconfined"

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Daniel, you listed the X denial again. Do you have snapd 1.9.2 installed? You might have to remove the snap and install it again to regenerate the policy.

Revision history for this message
David Planella (dpm) wrote :

Jamie, could you expand on what you meant with the other issues being due to packaging? Thanks!

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

@David, apps need to only use things in the snap-specific data directories, but this is using /var/cache/fontconfig, schema files in /usr and themes in /usr. These are not a result of x11/unity7 not connecting and therefore not this bug.

Revision history for this message
Evan (ev) wrote :

Hi David,

I set up the Jenkins snap with a custom fontconfig, which may be useful:

https://github.com/evandandrea/jenkins-snap/commit/6afbe244bdd0f9c31ccffa8d0b4ad0947c3c71fc

It doesn't set up the font cache, but that wouldn't be a difficult extension.

Changed in snappy-desktop-examples:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.