Repository navigation
Description
Relevant area(s)
Windows
Brief description of your issue
An individually authorized, previously absent file cannot be created under ProcessContainer on Windows 11 25H2 build 26200.9711. The same exact-path grant allows opening an existing file for writing. The failure reproduces through Microsoft MXC SDK 1.0.1 without Codex, an approval UI, or tablet transport.
Steps to reproduce
- Create a neutral fixture directory with existing.json. Leave new.json and ungranted.json absent.
- Request ProcessContainer with allowDaclMutation=false and the fixture directory read-only. Grant write only to existing.json and new.json; grant necessary runner/runtime paths separately. Do not grant write to the target directory.
- In the child, open existing.json with GENERIC_WRITE/OPEN_EXISTING, then try new.json and ungranted.json with CREATE_NEW.
- Existing-file write-open succeeds; both create attempts fail with Win32 error 5. The exact-authorized new.json remains absent.
- A separate directory-write control permits creating/writing new.json and its byte readback matches. That control is broader access, not a workaround.
The direct SDK case completed with status=0, child exitCode=0 and timedOut=0. The child also reproduced the distinction with built-in Python os.open: the exact absent-file attempt returned errno 13. A further CreateFileW matrix tested CREATE_NEW and OPEN_ALWAYS, each with GENERIC_WRITE and FILE_WRITE_DATA; all four exact-authorized absent paths were denied. Ungranted neighboring controls remained absent, and the existing-file guard was unchanged.
Expected behavior
Either register an exact rule allowing the absent file to be created, with ungranted neighboring names still blocked, or explicitly report that the native backend cannot honor this grant. A successful environment-creation result should not silently discard the requested allow entry.
Questions for maintainers
- Is creation with an exact absent-file fs_read_write/readwritePaths entry part of the supported ProcessContainer contract?
- Is the processmodel attribute-failure skip intentional, and is there a supported Windows servicing correction or API route that retains this leaf?
- Can the SDK detect an unhonored absent-path grant and return a clear limitation until the native implementation supports it?
Required scope
Keep the exact authorized file, existing filesystem access checks and grant lifetime. Do not authorize the parent directory, mutate ACLs, use permissive mode, precreate the target outside containment or replace Windows components.
Actual behavior
The exact-authorized absent file receives access denied and remains absent, while the existing-file write-open and the separate directory-write control succeed as described above.
Installed image identities
processmodel.dll 10.0.26100.9711, SHA256:
83d1a458fc056d4d20931019dffb384a33bcdfd1c6759070b0885c5577dd44db
bfs.sys fixed numeric version 10.0.26100.9711, SHA256:
7313e6d32e2d6897cbd8d33be24764684c8d37aaa687ab38abd6c20f5af22066
The BFS FileVersion/ProductVersion strings still say 10.0.26100.8875; the fixed numeric resource reports 9711. This version distinction refers to the same hash.
Static localization (REA/Ghidra, not a runtime trace)
The SDK preserves the absent path into PSEC. In installed processmodel.dll:
- PSEC fs_read_write maps to config vector +0x20 and native category 1; fs_read_only maps to +0x38 and category 2. The move constructor preserves these vector offsets. This is a cross-function static derivation.
- SandboxFilesystem::ApplyFilesystem (VA 0x180035b78) invokes path loop 0x180035848 for both allow categories with a null deferred-path vector.
- Classifier 0x18003668c calls GetFileAttributesExW and returns EAX=0 on failure, without distinguishing the error. On success it returns 1=file or 2=directory.
- The loop's zero-result branch advances to the next path for those allow lists, before DOS-to-NT conversion (0x180035942) and IOCTL 0x228004 (0x18003599c). Only category 4 plus a non-null deferred vector retains that failed path for later processing. Assembly confirms this; it is not a decompiler char artifact.
An older locally retained Microsoft image, processmodel.dll 10.0.26100.9444, contains the same attribute-failure omission, independently checked in assembly. Its SHA256 is 86f29c88b2b72d619d73615cfda5711705fce7ea44def35cc4cf36a35f5e2221.
A separately downloaded Microsoft processmodel.dll 10.0.28000.3086 (26H1 branch) also contains this omission: ApplyFilesystem 0x180033ef4 -> path loop 0x180033c04 -> attribute classifier 0x180034aec. Its SHA256 is d44c0c40551acd91448bfc073bf1b8a2127f12c8fd9db91d30eb31ae89a66421, matching the x64 entry in Microsoft's KB5127646 file-information CSV. The isolated image reports NotSigned; no embedded/catalog signature verification is claimed. It was inspected statically only, not loaded, installed or proposed as a host replacement. This cross-branch comparison is not a runtime regression test.
Release Preview KB5127936/build 26200.9807 was announced on October 16, but the public Catalog query captured on October 21 returned no results. No component image from that preview was obtained; its behavior remains unknown. The release notes do not establish that it corrects this exact-path case.
The installed BFS has a STATUS_OBJECT_NAME_NOT_FOUND branch in BfsProcessSetPolicyRequest (0x14000bd6c) that reconstructs the leaf and calls BfsAddOrModifyEntry. This is not evidence of safe runtime future-file support. BfsFindEntry compares whole path components using RtlEqualUnicodeString, rather than prefix matching. No private IOCTL, Windows patch or feature switch was used.
Limits
The static observations concern hash-identified on-disk images; original loaded module identity, final PSEC payload and the original impersonated attribute query were not captured. A later normal-token read-only attribute check returned error 2 for each absent fixture name. Kernel completion, aliases, reparse/rename races and future-leaf authorization remain unvalidated. A denial-log AccessMask field was ambiguous due to duplicate TDH property names and is not attributed to the actual CreateFileW request. No successful exact absent-file creation is claimed.
Public contracts consulted
https://github.com/microsoft/mxc/releases/tag/v1.0.1
https://github.com/microsoft/mxc/blob/v1.0.1/external/windows-sdk/ProcessSecurityEnvironment.fbs
https://learn.microsoft.com/en-us/windows/win32/api/processmodel/ne-processmodel-process_security_environment_flags
https://download.microsoft.com/download/16ba8bf1-c975-4501-9df6-a5089719ef46/5127646.csv
https://learn.microsoft.com/en-us/windows-insider/release-notes/release-preview-24h2-25h2/build-26200-9807-26300-9807
Activity
bbonaby commentedon Oct 23, 2026
CC: Daniel (@daniedud-MSFT) another BFS one when you get the chance.
Also CC: Jeff Whiteside (@jsidewhite), Gudge (@MGudgin)
daniedud-MSFT commentedon Oct 23, 2026
Thank you for filing this.
We expect a fix to start rolling out at the end of November with a Windows update, allowing R/W, R/O, and Enumerate grants to be set on non-existent files/directories (as long as the parent has existed at time of container creation). Deny already works at this point in time. I'll update the issue once there is a KB to try out.