Repository navigation
Keep dev-link configuration readable under restrictive umasks - #14948
DanielJBurbridge wants to merge 1 commit into
Conversation
|
|
Thanks for this. I've read the change, but it isn't classified or verified yet, so it has no labels. What I checked: I read the diff at Why it stops here: every item is classified by two models separately, and the second opinion (Codex Medium) wasn't run because omabot's daily review budget was already spent. A classification from one model alone doesn't count, so I haven't added Next: this goes back in omabot's queue to be classified, then reproduced on a worker and reviewed by both models. Nothing is needed from you in the meantime. |
|
Hit this on a packaged 4.6.0rc1 install (Omarchy on Arch, Hyprland 0.57.2-7, aquamarine 0.16.0-1), and the impact is worse than "cannot source it": it is a login loop that never reaches a desktop. Setup:
The generated payload is just The |
|
Thanks for the review. I’m closing this older branch and will keep the config-permissions fix for a fresh pass against the shared tests. |
omarchy dev linkandomarchy dev unlinkwrite/etc/omarchy.confusingsudo tee. With a restrictive privileged umask, a newly created file is mode 0600, so ordinary shells and the uwsm session cannot source it. Rewriting an existing mode-0600 file with tee also leaves it unreadable.Use
install -Tto write the generatedOMARCHY_PATHexport root-owned with mode 0644. The generated payload contains no credential fields. File symlinks, hardlinks and directory symlinks are replaced without changing their referents; a real directory at the fixed config path is refused. Previous contents are replaced rather than made readable.Regression tests cover missing files, existing mode-0600 files, file/directory symlinks and hardlinks under umask 077. They verify generated contents, unchanged referent contents/modes, directory refusal, no later sudoers operation after write failure, and explicit mode/ownership arguments. Privileged writes are mapped to disposable files while the tests execute real GNU install.
Validation on the final rebased commit:
bash test/shell.d/dev-link-test.sh,dev-unlink-test.shanddev-env-path-test.shpass.git diff --checkpass../test/allwas attempted with no graphical session and a disposable home/runtime, bounded to 300 seconds. It exited 124 after starting 181 of 380 shell suites and reporting seven failed assertions. The full suite did not pass or complete.All seven reported assertions were reproduced on unchanged base
04b374a989c49bdeda72542f194106ea0c3da3ffin a bounded confirmation run:omarchy-pkgscheckout for package coverage.Cache paths stayed in disposable fixtures during confirmation. These failures predate the patch; the incomplete aggregate result remains a validation limitation. No live configuration, privileged installation or reboot testing was performed.
The three focused suites, Bash syntax checks and whitespace check passed again on 13 October 2026 against unchanged head
a742edef41db862da7c63f733b240bcf932e24f9. The aggregate-suite limitation above remains.