Repository navigation
Conversation
|
Reviewed by Claude Opus 5, with an independent second opinion from Codex at xhigh. Both reached the same verdict, and Codex contributed two mechanisms the first pass had not worked out; its independence is not currently guaranteed, so the agreement is worth less than those two findings. What was checked. The diff against The mode fix is correct, and it is the right kind of repair. On coreutils 9.11, The sentinel is where the defects are. Its premise holds — dockur's
Neither of the two behaviours that distinguish this PR — the sentinel under the privileged path, and Nothing was pushed to your branch. Finding 1 needs a design decision rather than a patch — drop the privileged creation, or open with Waiting on the maintainer, both for that choice and for a decision on the sentinel. |
|
Addressing the review by dropping privileged sentinel creation.
This revision:
The world-writable window is now only during guest boot, not until the next privileged action. |
c194fcf to
e3d3190
Compare
|
Re-reviewed at Where the previous findings stand. Finding 1 (root create/truncate through New, and pushed as The other loop element already covers the case, so the fix is to delete the legacy one. Still open, for you rather than a patch from me: What was checked. The delta only — everything under Codex reached the arbitrary-chmod finding independently and rated it High; its independence is not currently guaranteed, so treat that as agreement rather than confirmation. What it contributed on its own terms is the dockur Related. This closes #9374 and #9698, which the body names, and also #9334, #9540, #9567, #9884 and #9943, which are the same setgid symptom — worth adding to the body so they close together. #9746 and #9943 are the container-re-adds-the-bit variant, and this is the only one of the five open PRs on this root cause that addresses it: #9322, #9414 and #9504 change the two Waiting on you for the |
|
Picked both of the remaining options.
This revision:
Still never chmod |
|
Re-reviewed at Everything from the last review is closed. The Worth being precise about what the re-hardening is buying, because it is not the launch failure. The silent-launch bug is fixed by Which makes the new function's failure matter, because it is exactly that gap on the install path. The The rest is smaller:
To be explicit about the design question rather than pushing a guess at it — closing the install gap means either waiting for readiness on the install path, which blocks the elevated session for the whole download, or re-hardening from something that outlives the command. Both are your call, so nothing was pushed. The TOCTOU reasoning in the comment above Codex agreed with the install-path finding; its independence is not currently guaranteed, and I had reached and measured it first, so treat that as agreement rather than confirmation. What it contributed on its own terms is the Checked on a disposable VM: |
|
The 15s privileged wait on This revision:
PR body updated: sentinel text is gone, and the extra setgid issues are listed. |
|
Re-reviewed at Where the last round's findings stand. The install-path gap is closed in design — Pushed as Still open, and yours rather than a patch from me: Two smaller things, both in the watcher and neither pushed:
On the rest of the diff, which I re-checked in full. Codex. It reached the same two conclusions about the terminal hangup and the sudoless glob, with the kernel tty-hangup and Cross-references, since several reports of this same defect are open. #10315 is fixed by this PR on both counts it asks for — the symbolic clear, and the missing Checked on a disposable VM: |
|
Addressing the review at Sudoless-Docker restore (the main open finding): took the non-root-branch option. Watcher: exits only after verifying the mode is really 700, so a failed chmod no longer ends the watcher permanently; budget raised to 3600s, and on expiry it applies a final best-effort restore and logs via Defence in depth: Tests: the unit test now pins that an unprivileged |
|
Re-reviewed the delta The open finding is fixed, and I did not take the description's word for it. Built the production shape on a worker — Pushed as The watcher's other two fixes check out. A Three small things left to you, none blocking.
Codex. It agreed on the central claim and its independence is not currently guaranteed, so read that as agreement rather than confirmation — I had reached and measured the same conclusion first. What it contributed on its own terms is all three items above: the test gap, the unconditional expiry chmod, and the log overclaim. I verified each against the source before repeating it, and rejected nothing. Checked on a disposable VM at Where this sits against the field, re-derived today. Nine open pull requests now fix the |
fb1e500 to
ab2d8e9
Compare
|
Two additions while reproducing a launch failure on a dev-linked machine (
All suites green at this head: windows-vm-test (6), mount-boundary (11), compose (22), windows-key (7). |
fc0833d to
4f2ba28
Compare
|
Rebased onto current quattro (2fbac0c). All 11 commits replayed cleanly, no conflicts. windows-vm-test.sh and windows-vm-mount-boundary-test.sh pass. |
|
Fix pushed for a style violation this PR introduced:
Verified: |
2e47551 to
8369a63
Compare
|
Confirmed on a real Omarchy 4.0.4 host with dockurr/windows v6.05 and coreutils 9.11. After the VM starts, I independently reproduced the mode behavior and added a local regression case using a |
|
Thanks for the thorough confirmation — the |
|
hey, this is already covered in #12264 (clear setgid on windows vm harden). mind closing this as a duplicate? |
|
Addressed all three P1 security findings (pushed as
Verification: 4 new tests in |
|
Follow-up to the re-review (pushed as |
|
Follow-up fix for the paused-container finding (pushed as |
|
Follow-up fix for the stderr-warning finding (pushed as |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Looked at this again at What this still adds on top of
Why there is no class label: I read the remainder as a bug fix, because on One thing for the author that does not depend on that decision: the description still opens with the eight Waiting on the maintainer to say whether the remaining scope is a fix they want here. |
|
Looked at this again at What changed since Why there is still no class label: asked again at this head, separately, I read it as a bug fix, because on Waiting on the maintainer to say whether they want the share re-hardening and the copy-match guard here, and as which. |
|
Looked at this again at What changed since Why there is still no class label: asked again at this head, separately, Claude Opus 5.5 read it as a bug fix, for the reason above, and Codex Medium read it as an enhancement. They did not agree, so it carries neither label. One thing for whoever decides, read from the code rather than run: No other open pull request touches the share re-hardening. Waiting on the maintainer to say whether they want the share re-hardening and the copy-match guard here, and as which. |
|
Thanks for the re-review. This is a security regression, not an enhancement: dockur rewrites the share to |
When dockur/windows starts with an empty shared folder, its Samba setup changes
/sharedto mode2777. Because/sharedis a bind mount of~/Windows, that leaves the host folder readable and writable by other local users until another VM action hardens it again.This PR restores the host share to private mode
700after guest startup and on stop, including the unelevated Docker path. Startup restoration also runs when the readiness wait times out. Fresh installation and failed launch schedule a bounded owner-side watcher so a delayed ISO download does not require holding a privileged session open. The watcher retries failed permission repairs and stops after a successful repair, positive evidence that the container is gone, or its six-hour budget.Privileged restoration uses the protected bind anchor rather than following
~/Windowsby pathname. Repairs are best-effort and do not turn an otherwise successful VM start or stop into a reported failure. This repairs the container's permission change after it happens; it does not prevent every interval of exposure or enforce permissions indefinitely.The PR also refuses
pkexecelevation when the running helper and the fixed, root-owned installed helper differ, with a diagnostic asking for a package refresh. This prevents a dev-linked checkout from silently handing privileged work to stale packaged code. Directory hardening is shared with credential-directory creation so leftover set-ID bits are cleared there as well.The original preflight setgid rejection was already fixed upstream by #12323. This PR addresses the distinct remainder: post-start/stop share privacy and consistency between the privileged and unprivileged helper copies. It no longer claims to fix the eight closed issues listed in the original description. The maintainer scope clarification explicitly keeps this remainder open.
Regression coverage exercises share restoration, root and unelevated stop dispatch, watcher startup and retry behavior, container-state handling, and installed-helper consistency. Earlier validation passed the focused Windows VM, compose, mount-boundary, and command-style suites; tests were not rerun for this title/description-only update. Whether the remaining scope should land here is still the maintainer's decision.