Steps to reproduce in an amd64 VM using amd64 RC2 from http://cdimage.ubuntu.com/ubuntu-core/xenial/daily-preinstalled/current/:
(grab ./mir-client_0.24.1_amd64.snap from https://code.launchpad.net/~kgunn72/+snap/mir-client)
1. install mir-libs: $ sudo snap install mir-libs --edge $ snap interfaces|grep mir mir-libs:mir-libs
2. install mir-kiosk $ sudo snap install mir-kiosk --edge $ snap interfaces|grep mir :opengl mir-kiosk mir-kiosk:mir - mir-libs:mir-libs mir-kiosk
3. install mir-client $ sudo snap install --dangerous ./mir-client_0.24.1_amd64.snap $ snap interfaces|grep mir: opengl mir-client,mir-kiosk mir-kiosk:mir mir-client mir-libs:mir-libs mir-kiosk
At this point, 'snap interfaces' output is correct and everything should be auto-connected. The mir-client (plug side) has the expected policy:
$ grep 'label="snap.mir-kiosk' /var/lib/snapd/apparmor/profiles/snap.mir-client.client-start unix (receive, send) type=seqpacket addr=none peer=(label="snap.mir-kiosk.mir-kiosk"),
However, the the mir-kiosk (slot side) does not have the expected policy:
WORKAROUND: disconnect and connect the interface manually:
$ sudo snap disconnect mir-client:mir mir-kiosk:mir $ sudo snap connect mir-client:mir mir-kiosk:mir $ grep 'label="snap.mir-kiosk' /var/lib/snapd/apparmor/profiles/snap.mir-client.client-start unix (receive, send) type=seqpacket addr=none peer=(label="snap.mir-kiosk.mir-kiosk"),
Additional information: $ snap list Name Version Rev Developer Notes core 16.04.1 324 canonical - mir-client 0.24.1 x1 - mir-kiosk 0.1 1 albaguirre - mir-libs 0.1 1 albaguirre - pc 16.04-0.8 9 canonical - pc-kernel 4.4.0-45-3 34 canonical -
$ sudo snap download mir-kiosk --edge $ cat ./mir-kiosk_1.assert ... type: snap-declaration format: 1 ... slots: mir: allow-connection: true
Note, I also adjusted the snap declaration in the store to have: type: snap-declaration format: 1 ... slots: mir: allow-connection: true allow-auto-connection: true
and it did not make a difference.
Steps to reproduce in an amd64 VM using amd64 RC2 from http:// cdimage. ubuntu. com/ubuntu- core/xenial/ daily-preinstal led/current/:
(grab ./mir-client_ 0.24.1_ amd64.snap from https:/ /code.launchpad .net/~kgunn72/ +snap/mir- client)
1. install mir-libs:
$ sudo snap install mir-libs --edge
$ snap interfaces|grep mir
mir-libs:mir-libs
2. install mir-kiosk
$ sudo snap install mir-kiosk --edge
$ snap interfaces|grep mir
:opengl mir-kiosk
mir-kiosk:mir -
mir-libs:mir-libs mir-kiosk
3. install mir-client 0.24.1_ amd64.snap mir-kiosk
$ sudo snap install --dangerous ./mir-client_
$ snap interfaces|grep mir:
opengl mir-client,
mir-kiosk:mir mir-client
mir-libs:mir-libs mir-kiosk
At this point, 'snap interfaces' output is correct and everything should be auto-connected. The mir-client (plug side) has the expected policy:
$ grep 'label= "snap.mir- kiosk' /var/lib/ snapd/apparmor/ profiles/ snap.mir- client. client- start "snap.mir- kiosk.mir- kiosk") ,
unix (receive, send) type=seqpacket addr=none peer=(label=
However, the the mir-kiosk (slot side) does not have the expected policy:
$ grep 'label= "snap.mir- kiosk' /var/lib/ snapd/apparmor/ profiles/ snap.mir- client. client- start "snap.mir- kiosk.mir- kiosk") ,
unix (receive, send) type=seqpacket addr=none peer=(label=
WORKAROUND: disconnect and connect the interface manually:
$ sudo snap disconnect mir-client:mir mir-kiosk:mir "snap.mir- kiosk' /var/lib/ snapd/apparmor/ profiles/ snap.mir- client. client- start "snap.mir- kiosk.mir- kiosk") ,
$ sudo snap connect mir-client:mir mir-kiosk:mir
$ grep 'label=
unix (receive, send) type=seqpacket addr=none peer=(label=
Additional information:
$ snap list
Name Version Rev Developer Notes
core 16.04.1 324 canonical -
mir-client 0.24.1 x1 -
mir-kiosk 0.1 1 albaguirre -
mir-libs 0.1 1 albaguirre -
pc 16.04-0.8 9 canonical -
pc-kernel 4.4.0-45-3 34 canonical -
$ sudo snap download mir-kiosk --edge 1.assert connection: true
$ cat ./mir-kiosk_
...
type: snap-declaration
format: 1
...
slots:
mir:
allow-
Note, I also adjusted the snap declaration in the store to have: connection: true auto-connection : true
type: snap-declaration
format: 1
...
slots:
mir:
allow-
allow-
and it did not make a difference.