Repository navigation
Closed
Labels
Backend-ProcessContainerWindows ProcessContainer behaviorIssue-BugSomething is not working as intended.OS-WindowsApplies specifically to Windows hosts or Windows behavior.Priority1Critical customer, security, or reliability impact requiring immediate attention.
Description
Relevant area(s)
Windows
Brief description of your issue
GetFinalPathNameByHandle with VOLUME_NAME_DOS fails inside AppContainers and therefore fails in Tier 3 MXC. I can't run Tier 1 MXC but I have tried using BFS.sys directly in a kind of crude simulation of Tier 1, and I observe the same problems even in that mode. Using VOLUME_NAME_NT works fine.
If I modify the DACLs on the following paths to add the AgenticAppContainer capability with the listed permissions, then that fixes the problem, and GetFinalPathNameByHandle starts working.
\GLOBAL??- DIRECTORY_QUERY | DIRECTORY_TRAVERSE | READ_CONTROL\GLOBAL??C:(and other drives) - SYMBOLIC_LINK_QUERY | READ_CONTROL\GLOBAL??\MountPointManager- SYMBOLIC_LINK_QUERY | READ_CONTROL\\.\MountPointManager- FILE_GENERIC_READ
All four seem to be necessary to make it work. Running a separate program to grant those makes wxc-exec's containers happy.
Steps to reproduce
go build mytest.go
wxc-exec config.json
(lightly edited from example)
Expected behavior
Same as 'go run mytest.go': call succeeds in both modes:
C:\Users\rsc\pub\mxc\src\target\x86_64-pc-windows-msvc\release>go run mytest.go
VOLUME_NAME_DOS: \\?\C:\Users\rsc\pub\mxc\src\target\x86_64-pc-windows-msvc\release\config.json
VOLUME_NAME_NT: \Device\HarddiskVolume4\Users\rsc\pub\mxc\src\target\x86_64-pc-windows-msvc\release\config.json
Actual behavior
C:\Users\rsc\pub\mxc\src\target\x86_64-pc-windows-msvc\release>wxc-exec config.json
VOLUME_NAME_DOS error: Access is denied.
VOLUME_NAME_NT: \Device\HarddiskVolume4\Users\rsc\pub\mxc\src\target\x86_64-pc-windows-msvc\release\config.json
Reacted by Toru Makabe
Metadata
Metadata
Labels
Backend-ProcessContainerWindows ProcessContainer behaviorIssue-BugSomething is not working as intended.OS-WindowsApplies specifically to Windows hosts or Windows behavior.Priority1Critical customer, security, or reliability impact requiring immediate attention.
Activity
github-actions commentedon Jul 28, 2026
Triage summary:
Container-Process,Area-SDK-Configuration(in addition to existingIssue-Bug,OS-Windows)@jsidewhite,@mgudgin(AppContainer / process isolation)This is a Windows AppContainer DACL issue:
GetFinalPathNameByHandlewithVOLUME_NAME_DOSfails inside AppContainers (Tier 3, and simulated Tier 1 via BFS.sys) because the AgenticAppContainer capability lacks access to\GLOBAL??, the drive symlinks, andMountPointManager. The reporter identified the four specific DACL grants needed to fix it.Maintainers: Comment
/investigateto check whether this issue or bug is valid against the most current code. Copilot will also produce a report with the changes that will be needed. For a small, unambiguous documentation or test fix, it may also create one draft PR.huzaifa-d commentedon Aug 7, 2026
/investigate
github-actions commentedon Aug 7, 2026
Investigation
Assessment:
confirmedClassification:
bugEvidence:
The reporter's findings are accurate and reproducible against the current codebase.
GetFinalPathNameByHandlewithVOLUME_NAME_DOSinternally resolves the NT device path back to a DOS path by traversing the NT object namespace (\GLOBAL??) through theMountPointManagersymlink chain. Inside an AppContainer, theAgenticAppContainercapability SID (which MXC always adds —appcontainer_runner.rs, line 640) is not granted access to:\GLOBAL??—DIRECTORY_QUERY | DIRECTORY_TRAVERSE | READ_CONTROL\GLOBAL??\C:(and other drive symlinks) —SYMBOLIC_LINK_QUERY | READ_CONTROL\GLOBAL??\MountPointManager—SYMBOLIC_LINK_QUERY | READ_CONTROL\\.\MountPointManager—FILE_GENERIC_READMXC's existing
wxc-host-prep prepare-system-driveonly patches the Win32 filesystem root (C:\) viaSetNamedSecurityInfoWfor theALL APPLICATION PACKAGES/ALL RESTRICTED APPLICATION PACKAGESSIDs — it does not touch the NT object namespace.Additionally, MXC's own internal path canonicalization (
wxc_common::filesystem_canonical::canonicalize_path, used fordeniedPathsenforcement) also callsGetFinalPathNameByHandleWwithVOLUME_NAME_DOS— so this bug can silently cause MXC to fall back toPathCanonical::Unknowninside AppContainers, potentially weakeningdeniedPathspolicy enforcement.The fix requires:
wxc-host-prepsubcommand (e.g.prepare-object-namespace/unprepare-object-namespace) that grants theAgenticAppContainercapability SID (computed viaDeriveCapabilitySidsFromName) the four object-namespace ACEs using NT APIs (NtOpenDirectoryObject,NtOpenSymbolicLinkObject,NtSetSecurityObject) — notSetNamedSecurityInfoW, which only covers Win32-accessible paths.--probe-time check that warns when these ACEs are absent.docs/host-prep.mddocumentation.Information requested: N/A
Recommended next step: Implement a
prepare-object-namespacesubcommand inwxc-host-prepusing the four-path list from the reporter as the authoritative grant specification; update probe warnings anddocs/host-prep.md.Draft PR: Not created — the fix requires new NT object namespace security infrastructure (NT API usage beyond the current Win32
SetNamedSecurityInfoWlayer), probe warning changes, and multi-file documentation updates; outside the documentation/test-only scope for a draft PR.letmaik commentedon Sep 13, 2026
I hit this with Rust in the Copilot CLI Windows sandbox.
std::fs::canonicalize()fails withPermissionDenied (os error 5)for any existing directory I tried, including the current working directory.This breaks Clippy because it canonicalizes the directory used to search for its config file. Clippy exits before linting with:
jsidewhite commentedon Sep 13, 2026
Per Gudge (@MGudgin), Tier 3 support for process containment is being deprecated.
letmaik commentedon Sep 13, 2026
Sorry, can you explain what this means relative to the issue I'm seeing?
rsc commentedon Sep 13, 2026
I don’t have access to the system anymore but I believe I reproduced this in Tier 1 with the developer preview Windows release as well. The problem is that you still need permission to the paths that I listed. I was using BFS directly and did not try to grant those via BFS though.
I suggest at least adding a test that this works in Tier 1 before closing this issue.
Restore native ProcessContainer regression coverage