Skip to content

fleet walls: launcher checks applied stop timeouts, one shared pin, FIFO test timeout (#327 follow-ups) #365

Closed

Description

@scuttletoby

Follow-ups from #327 (fleet walls: launcher stop timeouts by sha256 pin; fixes #316), from the Fable audit on #327. Recommendation: do 2 and 4 now (small, tests only plus one constant); do 1 together with the next launcher change, since it moves the pin and needs a security lens; 3 needs no code unless a cheap way appears.

  1. Launcher checks the outcome, not the bytes. After systemd-run returns, the launcher reads systemctl show -p TimeoutStopUSec,TimeoutAbortUSec <unit> of the unit it just started (what systemd really applies, drop-ins and defaults included) and stops the unit when either is over the limit. Then the walls no longer need to reason about any launcher's bash. A launcher change: moves the pin, needs a security lens.
  2. One pin for both walls files. fork-fleet-walls/wsl2 reads the linux file's LAUNCHER_SHA256 instead of keeping its own copy, so a launcher change moves one line (today two, both checked by tests).
  3. Read is not run. The walls read the launcher through one open file, then run it by path, and the pool runs start later still. A launcher replaced in between (root only) is judged on the old bytes. Same as on main before fleet walls: launcher timeout read refuses what start() never passes; read-error test (#316) #327; write down the limit in .github/fork-fleet.md if no cheap fix exists.
  4. FIFO subtest hangs instead of failing when O_NONBLOCK is removed from the launcher open. Give it a timeout so the mutation goes red.

State question for each: what happens when this runs again, stops half-way, or meets an older launcher, or walls and launcher from different releases?

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions