Skip to content

fix(audit): check --filesystem grants regardless of mode; add TextureCraft and Craft Anything to ArtCraft - #941

Merged
jing2uo merged 2 commits into
mainfrom
fix/audit-filesystem-modes
Nov 2, 2026
Merged

jing2uo merged 2 commits into
mainfrom
fix/audit-filesystem-modes

Conversation

@jing2uo

@jing2uo jing2uo commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Audit: --filesystem modes

audit-descriptor.mjs matched its WATCH (--filesystem=home) and ESCAPE (--filesystem=host, --filesystem=/) lists by exact string. A grant with a mode suffix, such as --filesystem=home:ro or host:ro, passed with no warning, even though read access to the whole home is high-risk per docs/packagers/permissions.md. That's how #939 reported "0 warnings" with an undeclared home:ro.

  • The :ro / :rw / :create mode is now stripped before comparing, on both the finish-args and the declared policy.dangerous_permissions, so a declared --filesystem=home:ro still counts as declared.
  • Catalog-wide before/after diff: the only new finding is Blueshell's undeclared --filesystem=home:ro (a warning, not a failure). It's now declared in its flatpark.yml, using the reason already in its manifest (it reads the host's ~/.config/ghostty). No package newly fails.

ArtCraft collection

Checked: every audited descriptor exits 0, config/collections.yml parses, and every app id in the artcraft collection exists under registry/.

The WATCH and ESCAPE lists matched finish-args by exact string, so
--filesystem=home:ro (and host:ro and the like) passed with no warning
even though read access to the whole home is high-risk per
docs/packagers/permissions.md. Strip the mode before comparing, on both
the finish-args and the declared policy.dangerous_permissions.

Blueshell is the only package newly flagged: declare its home:ro, using
the reason already given in its manifest.
TextureCraft (#938) joins Graphics and design. Craft Anything gets a new
Developer tools group; #939 was meant to add it, but the change was lost
in the squash merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant