snap install not properly generating ConnectedSlot policy when auto-connecting via snap-declaration-allowed connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
kevin gunn | ||
Snappy |
Fix Released
|
Undecided
|
Alberto Aguirre |
Bug Description
Steps to reproduce in an amd64 VM using amd64 RC2 from http://
(grab ./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_
$ 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=
unix (receive, send) type=seqpacket addr=none peer=(label=
However, the the mir-kiosk (slot side) does not have the expected policy:
$ grep 'label=
$
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=
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 -
Relevant content from interfaces/
mir:
allow-
- app
deny-
$ sudo snap download mir-kiosk --edge
$ cat ./mir-kiosk_
...
type: snap-declaration
format: 1
...
slots:
mir:
allow-
Note, I also adjusted the snap declaration in the store to have:
type: snap-declaration
format: 1
...
slots:
mir:
allow-
allow-
and it did not make a difference. Note, while mir-client above is locally installed, I created test-mir-
$ sudo snap install test-mir-
test-mir-
$ grep 'label=
$
$ sudo snap disconnect test-mir-
$ sudo snap connect test-mir-
$ grep 'label=
unix (receive, send) type=seqpacket addr=none peer=(label=
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: snapd-interface |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Kevin Gunn (kgunn) |
importance: | Undecided → High |
milestone: | none → p1 |
status: | New → In Progress |
assignee: | Kevin Gunn (kgunn) → kevin gunn (kgunn72) |
tags: | added: personal |
Changed in canonical-devices-system-image: | |
milestone: | p1 → p2 |
Changed in snappy: | |
status: | Triaged → In Progress |
assignee: | nobody → Alberto Aguirre (albaguirre) |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
Changed in snappy: | |
status: | In Progress → Fix Released |
We don't consider auto-connections for slots, just for plugs. We'll fix it next week.