← 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 PR #501 in commit 3c04cd231, adding optional strict/devmode confinement, defaulting to strict, and generating devmode project templates.

Resolution: closed resolved

Reason: PR #501 was merged with commit 3c04cd231. It added validation for strict and devmode confinement, preserved strict as the default, and made snapcraft init generate devmode templates.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #501 in commit 3c04cd231, adding optional strict/devmode confinement, defaulting to strict, and generating devmode project templates.
stealth/space-bunny-alpha — closed resolved Merged PR #501 (commit 3c04cd231) adding the optional "confinement" property (strict/devmode) to snapcraft.yaml, defaulting to strict; snapcraft init templates generate devmode.
stealth/space-bunny-alpha — closed resolved Merged PR #501 (commit 3c04cd231), adding optional strict/devmode confinement, defaulting to strict, and generating devmode templates.
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.

Update history

No update history recorded yet.

Related work

Related issues

No related issues found above the similarity threshold.