Skip to content

[DRAFT Security RDTE] Reproduce writable-lock inode replacement split-fencing - #210

Draft
mark-e-deyoung wants to merge 1 commit into
integration/mvp-owner-stateinit-fence-r1-20261123from
rdte/lock-inode-custody-negative-r1-20261123
Draft

mark-e-deyoung wants to merge 1 commit into
integration/mvp-owner-stateinit-fence-r1-20261123from
rdte/lock-inode-custody-negative-r1-20261123

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

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/sessions UID1000-writable, a guest-equivalent same-UID process could unlink and recreate the .winebot-active-writer.lock or #207 .winebot-deployment-gate.lock entry. 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 witness tests/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.md specifies 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.

Copy link
Copy Markdown
Collaborator Author

R040 corrective sibling branches — important nonclaim

The 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 /artifacts/sessions/.winebot-active-writer.lock or activates protected owner CAS; therefore this negative proof must not be closed or waived. Full guest/control split plus bounded authenticated capability IPC, held-out critic and exact-head real Wine11 HIL still required.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant