plugs in apps in snap.yaml makes global plugs ignored for hooks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Won't Fix
|
High
|
Unassigned |
Bug Description
with a snap.yaml that globally declares its plugs and also declares app-specific plugs like so:
```
name: lp-1854046
version: '0.1'
summary: regression test snap for LP bug 1854046
description: https:/
base: core18
architectures:
- amd64
confinement: strict
grade: stable
plugs:
opengl: null
apps:
lp-1854046:
command: snap/command-
plugs:
- opengl
```
The top level plugs are ignored and not generated in the policy for the hooks. You can see this with a simple configure hook that tries to read from /var/lib/
```
#!/bin/sh -e
sha1sum /var/lib/
```
With this the snap will refuse to install.
Changed in snapd: | |
assignee: | nobody → Ian Johnson (anonymouse67) |
Changed in snapd: | |
status: | New → Triaged |
I tagged that as high importance because ian is already working on this, thanks Ian for raising the issue.