Skip to content

docs: the macOS dyld plane — why the wrapper profile needs no grant (tebako#1117) - #49

Merged
ronaldtse merged 1 commit into
mainfrom
audit/dyld-entitlement
Nov 25, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
audit/dyld-entitlement

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

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_LIBRARIES armed 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 — no docs/ convention).

The mechanism and the verification (darwin-23 = macOS 14.1.1, 23B81, arm64)

  • The wrapper (tebako-signed, hardened, the pair): its boot-head self-insert fires on macOS, but the wrapper only mounts, materializes the interpreter's load closure, and execs — nothing in its process consumes the interpose dylib; a stripped insertion is the product's designed loud fallback (proven by the same product wrapper in the openjdk line running green on darwin-23 with no entitlements at all).
  • The interpreter (upstream's bytes, byte-identical): the preload shim serves its core IO, and the insertion survives macOS 14 because UPSTREAM's signature carries the grant — verified on the published v2.8.75 image: bin/node is hardened-signed by the Node.js Foundation (HX7739G8FX) carrying com.apple.security.cs.allow-dyld-environment-variables (plus allow-jit, allow-unsigned-executable-memory, disable-library-validation).
  • Boot proof: the published v2.8.75 pair on darwin-23 — 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 --entitlements assertion 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.md gains "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.

…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).
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse deployed to windows-signing November 25, 2026 07:57 — with GitHub Actions Active
@ronaldtse
ronaldtse marked this pull request as ready for review November 25, 2026 09:12
@ronaldtse
ronaldtse merged commit 51c6b98 into main Nov 25, 2026
16 checks passed
@ronaldtse
ronaldtse deleted the audit/dyld-entitlement branch November 25, 2026 09:22

This branch was successfully deployed

1 active deployment
windows-signing — d29ed44d Deployed Nov 25, 2026 by ronaldtse via official / x86_64-macos #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant