← Back to issue list

Add support for confinement property.

View original Github issue

Metadata

Project
snapcraft
Number
#501
Type
pull request
State
merged
Author
kyrofa
Labels
Created
Updated
Closed

Current evaluation

Merged. Introduces an optional confinement property for snaps, defaulting to strict to preserve backward compatibility. Includes documentation updates, schema adjustments, and passing CI checks. Resolves LP #1580819.

Suggested action:

No scores available.

Issue body

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. This PR resolves LP: [#1580819](https://bugs.launchpad.net/snapcraft/+bug/1580819) by adding the "confinement" property, which must be one of "strict" or "devmode". This property is optional, and defaults to "strict" if unspecified (to maintain backward-compatibility with current behavior). However, `snapcraft init` generates a YAML that sets "confinement" to "devmode" since we expect most snaps to start out needing that.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Introduces an optional confinement property for snaps, defaulting to strict to preserve backward compatibility. Includes documentation updates, schema adjustments, and passing CI checks. Resolves LP #1580819.
qwen3.6-35b-a3b-mtp-q6 Merged. Introduced optional confinement property to snap metadata, defaulting to strict for backward compatibility. Resolves LP: #1580819. Updated schema handling and documentation, passed CI retests, and approved.
qwen3.6-35b-a3b-mtp-q6 Merged. Introduces an optional confinement property to snapcraft YAML, defaulting to strict for backward compatibility. Approved after documentation updates, schema attribute clarification, and successful CI retests.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1580819 Add support for confinement property snapcraft (launchpad) closed Implemented and verified the confinement property feature. Snapcraft now supports devmode and strict options, defaults to devmode in new projects, and correctly propagates the value to snap.yaml.
83%
#946 meta: support classic confinment snapcraft merged Merged. Adds support for the confinement property in classic confinement mode. Approved by two reviewers, passed CI, and modified three files with a +5/-4 line change. Resolves Launchpad bug #1647422.
72%