Windows: a read-only grant can be listed but not entered (chdir fails with EPERM), so git submodules fail under a read-only .git
SDK: @microsoft/mxc-sdk 1.1.0, Windows 11 26200.9711, ProcessContainer.
Observed. Inside the container, readdir of a path in readonlyPaths succeeds, but process.chdir() into it fails with EPERM. This happens both for a read-only path nested in a read-write grant and for a standalone read-only grant (for example the runtime folder). chdir into a read-write grant works.
Impact. git chdirs into a submodule's git directory (.git/modules/<name>). With the superproject's .git granted read-only, every git command in the submodule fails with cannot chdir to '.../.git/modules/lib': Permission denied, even with that folder named in readonlyPaths too. On macOS the same grants work.
Ask. Give read-only grants the traverse right (FILE_TRAVERSE / SetCurrentDirectory), so that "read-only" includes entering the folder.
Hi @mrestrepo95, I believe this issue should actually be resolved in the November Windows 11 update: https://support.microsoft.com/en-us/servicing/os/windows-11/2026/11/kb5132057-windows-11-25h2-26h2-update . Please let us know if you're still experiencing this on those builds.