Repository navigation
Conversation
Limine, pacman, and the systemd-sleep hooks now copy from /usr/share/omarchy unless a root-owned /etc/omarchy.conf names a linked checkout.
Contributor
Author
|
Closing this one. I went back over it and the change does not cross a privilege boundary. The caller who sets There may be a case for a shared "resolve the trusted tree" helper for consistency with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
omarchy-refresh-limine,omarchy-refresh-pacman,omarchy-toggle-hybrid-gpu, andomarchy-hibernation-setupexpand$OMARCHY_PATHas the user, thensudo cpthat path onto a root-owned target:A caller who sets
OMARCHY_PATHto a tree they can write, then types the sudo password for "refresh Limine" or "refresh pacman", installs their file as the bootloader config, the package config, or a sleep hook systemd later runs as root.omarchy-plymouth-setalready refuses a user-owned source tree unless a root-owned/etc/omarchy.confnames that checkout. These copies did not.The prompt still asks for a password. The bug is that the copy source is a path the caller chose.
What changed:
/usr/share/omarchyby default./etc/omarchy.confis a root-owned regular file whose only line names that checkout, which is whatomarchy-dev-linkwrites. Same rule as plymouth-set.Tests: new
test/shell.d/privileged-source-copy-test.sh. A source check pins every remaining sudo-copy. With a fake tree inOMARCHY_PATH, refresh-limine and refresh-pacman still ask sudo to copy from/usr/share/omarchy. All 3 pass. The elevation cases stub sudo, so nothing here writes/bootor/etc.