Repository navigation
[DRAFT Security RDTE] Reproduce writable-lock inode replacement split-fencing - #210
Conversation
R040 corrective sibling branches — important nonclaimThe same-UID inode replacement security counterexample in this PR remains TRUE and release-blocking for the original WineBot runtime writer lock. #211 separates only the deployment controller's lock into a dedicated root-owned external volume unavailable in the Wine runtime, qualifying a synthetic guest unlink refusal on public #45194276203. #212 separately qualifies a standalone root-only Go owner registry / generation CAS on #45195410806. Neither patch changes runtime's guest-UID1000 |
R040 isolated negative security workcell — DO NOT treat passing as secure
A writer lock is held on an inode, not a filename. After #201 state-init makes
/artifacts/sessionsUID1000-writable, a guest-equivalent same-UID process could unlink and recreate the.winebot-active-writer.lockor #207.winebot-deployment-gate.lockentry. Both original and replacement can carry separate exclusive kernel flocks. This violates hostile guest admission if untrusted Wine processes share the UID and can reach that writable parent.On exact #205 source
b520f5c419d1199ff536d5c6f8260dcadd2bc5ed, this source-only, minimal child adds a bounded synthetic temporary-directory negative witnesstests/test_lock_inode_custody_negative.py: parent acquires exclusive flock; a separate same-UID subprocess unlinks/recreates only that temporary filename and acquires another exclusive flock; verifies different dev/inode, old FD still alive and raw output fixed to one enumerated marker. Registers it in the mandatory unit manifest.formal/LOCK_FILE_INODE_CUSTODY.mdspecifies release-gating correction: a control-plane volume/authority unmounted/unwritable by Wine guest principals plus independent UID/container sandboxing, capability-scoped API/IPC, generation CAS/replay. No patch to privileged source.A GREEN negative control means the unsafe behavior was reproducible, not that production code is safe. It must accompany a protected-control-plane implementation and critic for release. Separate PR #207 provides cooperative local lock control only. No user files, external targets, raw paths, private GHA minutes, image pushes, source patch or protected merge. Draft/held, exact-head CI pending.