Repository navigation
feat(core): confine crew workers' engine processes on macOS - #527
Merged
Merged
Conversation
A crew worker runs as the person, so its shell could read the store and call the orbyn CLI. On macOS each worker's engine now starts under a fixed sandbox-exec profile that denies the data folder except the worker's own run folder, checkout and library. Where no restriction exists (other platforms, missing tool, nested restriction, Codex, terminal engines) the worker is refused before it starts.
…orker Deny lsopen and signals to other processes, refuse an allowance that contains the data folder, fail closed when the core is not bound, and state in the docs only what the tests prove.
1 of 5 tasks
…orker Deny rename and removal of the data folder and every folder above it, let the route down to the worker's own folders be walked, and drop a stale doc line.
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.
Summary
sandbox-execprofile that denies the data folder (store, service handle, other runs' files) except its own run folder, checkout and library, and denies inspecting other processes.Refs #441
Closes #
Parity rows
none
Frames built
Frames built: none
Testing
sandbox-exec: newhost::confinetests andcrew::tests::confinedpass; orbyndconfined_clipasses; fullorbyn-corecrew and driver filter passes (398 passed); clippy-D warningsclean.Co-authors
none
AI usage
Checklist
web/src/generatedwith any contract change;docs/architecture.mdwith any rule change