Repository navigation
Conversation
|
The numeric 0700 was leaving setgid in place, and the existing Read against current |
|
Independently reproduced this on a physical Omarchy 4.0.2-1 install upgraded from 4.0.1. Dockurr had left Validated this branch in a clean checkout:
The symbolic |
|
Thanks — that 2700 → chmod 0700 → shared_mode=2700 trace is the live path I could not run here. The compose test covers the bits; your install shows Dockurr actually sets them. |
|
hey, this is already covered in #12264 (clear setgid / special bits on windows vm harden). mind closing this as a duplicate? |
|
Update: #12323 has merged into Scope checked by GPT-6 in Codex and Codex Medium against the discussion and landed change; review independence is not guaranteed. No tests were rerun for this cleanup. Omabot on behalf of DHH |
Problem
Existing Windows VM installs can fail to start when the shared directory has the setgid bit set, for example mode 2700. The migration hardens the directory with numeric
chmod 0700, but numeric modes leave unspecified special bits unchanged. The subsequent exact-mode check sees 2700 instead of 700 and aborts the migration, causing the Quickshell Windows launcher to report only that startup failed.Solution
Use an explicit symbolic mode that sets owner permissions, removes group/other permissions, and clears all special bits before validating the mount sources. Apply the same hardening to both the user-side and privileged migration paths.
Testing
bash test/shell.d/windows-vm-compose-test.sh./test/all(the existing environment-dependent failures remain inconfig-test.sh,snapper-test.sh,unowned-system-paths-test.sh, andwindows-vm-mount-boundary-test.sh)The focused Windows VM test now covers migration from a setgid shared directory.