fix: don't apply default plugs or layout to classic-confinement core24 snaps - #10060
Merged
Conversation
🦋 Changeset detectedLatest commit: c9cc82b The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
mmaietta
reviewed
Aug 6, 2026
mmaietta
marked this pull request as ready for review
August 6, 2026 15:07
mmaietta
approved these changes
Aug 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested via Slack thread
Before: building a
core24snap withconfinement: classicstill generated the default content-snapplugs(gnome-46-2404, gtk-3-themes, icon-themes, sound-themes, gpu-2404), the injectedbrowser-supportplug, app-level default plugs, and the defaultlayoutinsnapcraft.yaml. The snap store review rejects classic snaps that declare plugs or layout, so classic core24 snaps could not pass review.After: classic-confinement core24 snaps declare no plugs (root or app level) and no layout, restoring the guard the legacy builder has had since #2730. The core24 rewrite (#9517) lost this guard. Strict-confinement output is unchanged.
Details:
plugs/layoutare still honored under classic, but alog.warnnow notes the store review is likely to reject them.browser-support(allow-sandbox) plug, the generated launcher script now passes--no-sandboxand the unused setuidchrome-sandboxhelper is stripped from the staged app — same runtime behavior the legacy builder applies to classic snaps.SnapCore24was refactored from nested ternaries into explicit early-return helpers (resolvePlugs,resolveLayout,buildDefaultRootPlugs); behavior is otherwise identical.snapcraftTestsnapshot entry for the new classic test was written by hand; CI will correct it if it is off.Fixes #10057
Generated by Claude Code