Public: anyone can read this; the crew can change it.
A check with no cell can fork bun again: /proc stays readable under the floor, and Landlock's ptrace scope still keeps other processes' environ, maps and fds (#17305) #17365
Merged 18h 28m ago, live in production
Fixes #17305. Security-sensitive: please review the sandbox change before landing. Since #16938, a check with no cell only let the helper's own pid read /proc/ .
-
Reviews
ApprovedApproved. /proc is one read root again, so a step that forks bun can read its own /proc/self. The kernel test now checks the claim that makes this safe: another process's environ and maps stay refused (Landlock's ptrace scope), while /proc/self and /proc/sys are open. The deleted per-pid exclusion and the helper's /proc/<pid> rule are both gone, so there is still one way to do it. No page, API, MCP tool or terminal door changes, so no docs or TUI are owed.
Two things I would do next:
- Add a kernel test that /proc/<other pid>/fd and /proc/<other pid>/mem are refused. The code comment claims it, and the test only covers environ and maps.
- Put a test next to the comment that says the forge never puts a secret in argv, because cmdline is now readable for every process. Something that scans the argv the forge builds when it spawns steps would do.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- A check with no cell can fork bun again: /proc stays readable under the floor, and Landlock's ptrace scope still keeps other processes' environ, maps and fds (#17305) 7613bd1
- Full suite red: 5 files in check run 01m8t8z3eb62ps5y9awx0thcz9 (#17360) f3e23c6
- The edge-kept duty files one owner finding for every page the edge does not keep, not one issue per page (#17355) 469706d
- Merge pull request #17247 from sold/game-console ac6850a
- /advisories: OSV and CISA KEV for npm, matched to every repository's lockfile, to view, search and paste (#17059) e47a0f6
- A tab forge keeps its data in SQLite wasm on OPFS behind one small store module (#17303) cd3a4ff
- Load highlighter grammars lazily behind an async loader (#16804 follow-up) (#17332) 49c2c02
- Main's own check starts in a slot of its own: no main check had started since 21:08Z (#17287) bda2cf9
- Check again: the boot-time test is reverted (#17346) f17589b
- The console: a shell on a game box through its agent, the owner's alone and all of it audited; and Hetzner's own console 2e23155
- Main's whole verification runs on a runner and hands back what it measured: releases stop cutting it (#17315) 7256b20
- In the suite, a push to a parent does not move its forks in the background unless a test of following turns it on (#17330) bac72da
- Merge pull request #17226 from sold/cloud-projects 8eddcc7
- Game servers: Minecraft Java as a ready-made /infra design (#17341) 97edd7b
- In the suite, the loop's measured lag reads on time unless a test says otherwise, so a loaded runner sheds no test's page (#17358) b966f8c
- Games G6: Settings: server.properties and Paper config editors with a preview and one commit (#17319) d297ea6
- main-verify-not-cancelled: the last word waits for the later landings' own checks, which hold a release too (#17352) 24f44cb
- Every new forge and app can send email with zero setup through an inherited sending key, with a per-app override (#17338) d994979
- The suite's preload registers its afterEach only under bun test, so a child it preloads outside a test run loads (#17354) 9ba7513
- Cloud projects: each project's row is a dl of its own fields with at most ten resources beneath; infraPage keeps its doc comment ef60e5b
Thank you, @grokbot: pull #17365 landed in f719d48e7533.
1 commit by grokbot touched 3 files, landed as a merge, so your commits are ancestors of main and git merge main on your side stays clean.
Nothing changed on the way: it landed as you pushed it.
Fixes #17305. Security-sensitive: please review the sandbox change before landing.
Since #16938, a check with no cell only let the helper's own pid read
/proc/<pid>. A Landlock rule binds to an inode when the ruleset is made, so a pid forked later couldn't read its own/proc/self, and bun aborts at start (it reads/proc/self/maps). That made every bun check on a cell-less host red (e.g. grokbot-dev leagues/starter-scheduler pull 24).What changed:
/procis now one read root under the floor, and the helper's own-pid rule is gone because it's redundant. #16938's goal still holds. Landlock scopes ptrace, so a step can't getPTRACE_MODE_READon a process outside its domain, and that check guardsenviron,maps,memand thefd/links. What a step can now read is other processes'cmdline,statusand fd numbers. The table on #17305 has the measurements, and the cost holds as long as the forge never puts a secret in argv.Tests:
test/landlock.test.tsnow checks on the kernel that a forked child reads/proc/self/mapsand that the outside test runner'senvironandmapsstay refused. The changed assertions fail without the fix (2 fail) and pass with it. Outside this change, the starter-scheduler suite (109 tests) also passes under the fixed floor.Validation
validateon7613bd1f: pass in 242s (forge.json check.fast, verbatim, in a scrubbed env).bun install --frozen-lockfile: ok (exit 0, 0s)forge.json check.fast: ok (exit 0, 242s)