Repository navigation
Description
Relevant area(s)
Windows (AppContainer + DACL host preparation)
Brief description
wxc-host-prep prepare-system-drive --target <data-drive-root> can recursively rewrite security descriptors throughout the target volume even though the two ACEs it adds are non-inheriting. On a large data volume the command therefore appears to hang and touches thousands of descendants.
I intend to submit a focused fix after filing this issue, as required by CONTRIBUTING.md.
Steps to reproduce
- Use a Windows data volume whose directory tree contains legacy or inheritance-inconsistent ACLs.
- Run elevated:
wxc-host-prep.exe prepare-system-drive --target E:\ - Observe filesystem security activity below the root with Process Monitor.
On the affected 2 TB volume, a 15-second capture showed 10,684 SetSecurityFile operations below E:\, including package-cache and recycle-bin descendants, while host prep had only printed the first root ACE.
Expected behavior
Only the DACL on the requested drive root changes. Descendant files and directories remain byte-for-byte unchanged, matching the documentation's “non-inheriting” contract.
Actual behavior
The implementation writes the new root DACL with SetNamedSecurityInfoW. Windows documents that this API automatically propagates inheritable ACEs and applies the current inheritance model to existing children. This can normalize a large pre-existing hierarchy even when the newly added ACE itself is non-inheriting, making preparation extremely slow and unexpectedly mutating descendant ACLs.
The same risk exists in unprepare-system-drive, whose precise-revoke helper also ends by calling SetNamedSecurityInfoW.
Proposed direction
Keep the existing read/merge/rebuild logic, but use a non-propagating security-descriptor write for the persistent system-drive prepare/unprepare path (for example SetFileSecurityW). Leave the runtime DACL manager's intentional propagation behavior unchanged. Add a Windows regression test proving a child DACL is unchanged.
Activity
github-actions commentedon Jul 14, 2026
Triage summary
Labels applied:
Container-Process,Area-Build-Rust(in addition to the existingOS-WindowsandIssue-Bug)Owners assigned:
@jsidewhite,@bbonaby— this is a Windows process-container / AppContainer DACL host-prep bug in the Rustwxc_host_prepcrate.@bbonabyalso covers networking/DACL and Rust build area.Needs-Triagehas been removed.github-actions commentedon Jul 14, 2026
Triage complete.
Labels applied (already present):
OS-Windows,Container-Process,Area-Build-RustOwners assigned (already assigned):
@jsidewhite,@bbonaby— both correct for AppContainer / process isolation / DACL host preparation on Windows.Needs-Triagewas not present on this issue, so no removal was needed.bbonaby commentedon Aug 28, 2026
CC: Gudge (@MGudgin) for host prep
jsidewhite commentedon Sep 14, 2026
Per Gudge (@MGudgin), Tier 3 support for process containment is being deprecated.