Repository navigation
Trust local paths for the continuity floor - #41
Merged
Merged
Conversation
The floor checks refused any group- or other-writable ancestor, ACL, or foreign link, which stopped a hosted VM whose home is 2770 root:nogroup and Linux state created under umask 002. The security model treats the local machine, including its other accounts, as trusted, so drop the checks. New floor directories are still created 0700 and floor files 0600; key files still refuse other readers.
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.
What this does
Removes the continuity-floor permission checks in
src/continuity.rs: the walk over every parent directory for group/other write access without the sticky bit, the macOS ACL check, the link-owner check, and the mode checks on the existing floor and lock files. New floor directories are still created with mode 0700 and the floor and its lock with 0600. Key-file permission checks (crypto.rs) are unchanged.Why
docs/security-model.mdnow states the trust boundary as remote untrusted, local trusted. Other accounts on the same machine are local, so defending the floor against them contradicts the model. In practice the checks blocked legitimate setups found while rolling 8e1d073 out to the production Vault:2770 root:nogroup(every operation failed with "continuity directory /home/hatch can be replaced by another user");775), which had to be tightened by hand.Tests
floor_works_under_group_writable_existing_directoriesfails on main with the error above and passes here. The rejection tests for writable, symbolic, and ACL-exposed floor paths are removed; the test that new paths stay private under a permissive umask is kept.cargo test --all-targets,cargo clippy --all-targets -- -D warnings,cargo fmt --checkpass locally.