Add support for confinement property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Click Reviewers tools (obsolete) |
Fix Released
|
Undecided
|
Unassigned | ||
Snapcraft |
Fix Released
|
Wishlist
|
Kyle Fazzari | ||
click-reviewers-tools (Ubuntu) |
Fix Released
|
Undecided
|
Jamie Strandboge | ||
Xenial |
Fix Released
|
Undecided
|
Jamie Strandboge | ||
Yakkety |
Fix Released
|
Undecided
|
Jamie Strandboge | ||
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Snaps need to be able to specify if they require devmode or if they can be run confined. This will allow for snapd to provide reasonable errors if one tries to install a snap that cannot run successfully under confinement.
* The YAML property should be called "confinement," and it should have two options: "devmode" and "strict." It should be optional, and `snapcraft init` should set it to "devmode."
* The "confinement" YAML property should be copied into the resulting `snap.yaml`.
* Example YAML:
name: foo
version: 1
summary: foo
parts:
foo:
plugin: nil
[Test Case]
* Run `snapcraft init`. Make sure "confinement" is "devmode."
* Create a valid snapcraft.yaml and run `snapcraft` on it. Make sure the "confinement" value gets copied to the `snap.yaml`.
* Create a valid snapcraft.yaml and remove the "confinement" property. Run `snapcraft`. It should print a hint about defaulting to "strict", and "confinement: strict" should be in the resulting `snap.yaml`.
[Regression Potential]
* snapcraft.yaml validation could be incorrect (required properties may not be required correctly, etc.)
summary: |
- Add support for confinement flag + Add support for confinement property |
description: | updated |
Changed in snapcraft: | |
importance: | High → Wishlist |
description: | updated |
description: | updated |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft (Ubuntu Xenial): | |
milestone: | none → xenial-updates |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
Should be resolved with: https:/ /github. com/ubuntu- core/snapcraft/ pull/501