Under the hood
Useful2 Signal0
Low-level process and hardening paths now use built-in APIs instead of loading system libraries.
What's wrong with this entry?
Anonymous. No account, no email.
What
Three places that used dlopen through bun:ffi now call native APIs directly, and a fourth FFI helper was deleted.
Details
- Process replacement no longer dlopens libSystem/libc for
execve; it callsprocess.execvewith a sanitized env object where__proto__is defined rather than assigned. - The macOS TCC responsibility-disclaim spawn dropped its posix_spawn FFI dance for
process.execve(e, r, n, { macDisclaimResponsibility: !0 }). - PR_SET_DUMPABLE hardening now calls
Bun.ant.setDumpable(!1). - The SO_PEERCRED/getpeereid FFI peer-credential helpers were removed outright.
- These are macOS and Linux paths; the execve helper still returns early on Windows.
Evidence
prctl(PR_SET_DUMPABLE,0) returned nonzero
Strings lifted out of the shipped bundle, so the claim above can be checked against them.