[codex] OM-SEC-13: Remove the package-conflict root-write primitive - #9468
Closed
AFOliveira wants to merge 1 commit into
Closed
[codex] OM-SEC-13: Remove the package-conflict root-write primitive#9468AFOliveira wants to merge 1 commit into
AFOliveira wants to merge 1 commit into
Conversation
AFOliveira
marked this pull request as draft
September 1, 2026 09:49
Contributor
Author
|
Closing this branch in favor of #9070 together with omacom/omarchy-pkgs#239. I ran #9070’s file-conflict, package-conflict, and package-ownership bridge tests locally against the companion package branch; all pass, along with changed-script syntax and |
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.
Summary
A second local process could race the generic conflict mover and make its root restore publish attacker-controlled bytes into a root configuration path.
Finding: OM-SEC-13
Security impact
The attacker can replace bytes restored by root into a privileged configuration path; a suitable target produces host root code execution.
Remediation
The generic move/quarantine/restore handler was deleted. Static root files are package-owned, legacy bytes are handled by exact migrations, ordinary conflicts fail closed, and the sole broad overwrite is the one-time Quattro settings ownership bridge.
The reviewed implementation applies these concrete controls:
Validation
The real baseline handler was exploited with two isolated UIDs. Conflict, ownership-transition, migration, and extracted-package tests pass.
Detailed regression coverage: update-conflict-security-test.sh, update-file-conflict-test.sh, update-package-conflict-test.sh, system-sleep-hook-transition-test.sh, legacy-system-state-transition-test.sh, chromium-eula-transition-test.sh, unowned-system-paths-test.sh, upgrade-to-quattro-test.sh, and both package payloads pass.
Current status: Fixed structurally, provided the main and settings packages ship together.
All changed shell files on this branch pass
bash -n, andgit diff --checkpasses.Coordination
This is one finding in a coordinated 21-finding disclosure sent to the Omarchy security team. The corresponding Markdown report contains the affected-code analysis and safe reproduction.
The matching
omarchy-settingsownership change must ship in the coordinated release.