Repository navigation
fix(audit): check --filesystem grants regardless of mode; add TextureCraft and Craft Anything to ArtCraft - #941
Merged
Merged
Conversation
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.
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.
Audit:
--filesystemmodesaudit-descriptor.mjsmatched itsWATCH(--filesystem=home) andESCAPE(--filesystem=host,--filesystem=/) lists by exact string. A grant with a mode suffix, such as--filesystem=home:roorhost:ro, passed with no warning, even though read access to the whole home is high-risk perdocs/packagers/permissions.md. That's how #939 reported "0 warnings" with an undeclaredhome:ro.:ro/:rw/:createmode is now stripped before comparing, on both the finish-args and the declaredpolicy.dangerous_permissions, so a declared--filesystem=home:rostill counts as declared.--filesystem=home:ro(a warning, not a failure). It's now declared in itsflatpark.yml, using the reason already in its manifest (it reads the host's~/.config/ghostty). No package newly fails.ArtCraft collection
collections.ymlchange didn't make it into the squash merge (f22378e touches onlyregistry/).Checked: every audited descriptor exits 0,
config/collections.ymlparses, and every app id in the artcraft collection exists underregistry/.