Repository navigation
Conversation
…1648) Adds src/drivers/ios/jail/ (Swift) and builds it into dist/jail/ for arm64 and x86_64: a library that puts a simulator under a sandbox profile at boot, the simlock-jail program that compiles the profile and checks a process is sandboxed, and the profile itself. Nothing in the driver uses them yet.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
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.
Refs #1648.
Adds the three files of the iOS simulator sandbox and builds them. Nothing in the driver uses them yet, so no behaviour of simlock changes.
src/drivers/ios/jail/Jail.swiftbecomesdist/jail/libsimlock-jail.dylib. Loaded intolaunchd_simat boot, it applies a compiled sandbox profile; every process of the simulator inherits it.main.swiftbecomesdist/jail/simlock-jail:compileturns the profile into those bytes,checksays whether processes are sandboxed.profile.sbis the allow-list, shipped as text and compiled per simulator from named values.scripts/build-capture.mjscompiles each binary for arm64 and x86_64 withswiftcand joins the slices withlipo.Checked by hand on macOS 26.6, Xcode 27.2, the iOS 27.2 runtime, Apple silicon, with the built files:
simlock-jail checkpassed forlaunchd_simand every childlog stream, an XCTest run and an agent-device session workedsimlock-jailcompiles the profile to the same bytes under RosettaOpen:
Written by an agent.