Repository navigation
docs: the macOS dyld plane — why the wrapper profile needs no grant (tebako#1117) - #49
Merged
Merged
Conversation
…tebako#1117) The audit's node cell: node IS a preload-tier runtime (the interpreter's core IO rides the shim), and the insertion into it survives macOS 14's stripping because the exec TARGET's signature governs — upstream's bin/node is hardened-signed by the Node.js Foundation carrying allow-dyld-environment-variables (verified on the published v2.8.75 pair), and the pair boots green on darwin-23 with an in-image read served. The wrapper's own profile needs no grant: under its mount-materialize-exec shape nothing in-process consumes the interpose dylib (the same product wrapper runs green on darwin-23 in the openjdk line with no entitlements at all).
This branch was successfully 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.
docs: the macOS dyld plane — why the wrapper profile needs no grant (tebako#1117 — the node cell)
The audit verdict
tebako#1117's per-factory question: does the runtime exe (a) re-exec with
DYLD_INSERT_LIBRARIESarmed AND (b) need the shim for core IO visibility? Node is the interesting wrapper case: (b) is YES (preload tier — the interpreter's core IO rides the shim) — and the shape is still covered without a grant in the wrapper's profile, because the stripping law is governed by the signature of the exec TARGET, and the interpreter is upstream's own binary. This PR records the determination and its verification in the README (this repo's doc home — nodocs/convention).The mechanism and the verification (darwin-23 = macOS 14.1.1, 23B81, arm64)
bin/nodeis hardened-signed by the Node.js Foundation (HX7739G8FX) carryingcom.apple.security.cs.allow-dyld-environment-variables(plus allow-jit, allow-unsigned-executable-memory, disable-library-validation).node-boot-ok v24.22.2,fs.existsSync("/__tfs__/lib/tebako/layout.yaml")true, an in-image read (2093 bytes) served through the shim.The named future guard (recorded, not added): a staging-time
codesign -d --entitlementsassertion on the interpreter, so an upstream build that ever drops the grant fails the repack by name instead of shipping a macOS-14-blind pair.The change
README.mdgains "The macOS dyld plane (tebako#1117)" — the verdict, the two-target mechanism, the verification, the reopen trigger. No code, no workflow, no profile change.Draft — per the ecosystem rule, nothing merges without the owner's explicit go-ahead.