2 Commits
Author SHA1 Message Date
w3cjandClaude Opus 5.5 2b68a2347c feat(gitprotect): .git protection on Linux without root, through a user namespace around QEMU
On Linux, a start of a VM whose protection is on pins .git, its git dirs
and every lock path read-only in a user and mount namespace that devvm
_qemu pinned makes around QEMU. It keeps the pins while QEMU runs, records
each re-pin, refuses hard links and fails closed on watches and records;
doctor says why a host can't lock, and such hosts watch .git instead. The
pins' events file is read through safefile, and the command-line check
takes "devvm lock" in prose as English.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 10:06:17 -07:00
w3cjandClaude Opus 5.5 d89f3501a2 refactor(gitprotect): one scan, a locker per platform, reports as a table
tree.scan finds .git's parts once per check, which locking, unlocking,
the watch and the reports all go by. A Locker interface does the locking
(Flags on macOS, Watch elsewhere), and protect's reports are a table. No
behaviour change but the order of lock's warnings; the scan's reads of
git's own files go through safefile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 10:06:07 -07:00