Open profnandaa opened 1 month ago
Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.
This issue has been open for 30 days with no updates. @profnandaa, please provide an update or close this issue.
Summary
Origin: WCOW: writing to a file in root directory fails with
Access is denied
forContainerUser
- except on Win11 · Issue #4731 · moby/buildkit (github.com) Internal Bug ID: 54120781Scenario: low privilege user tries to create a file directly under
C:\
Expected behavior: should consistently fail with access denied error on both WS2022 vs Win 11 - hosted containers. Current behavior: fails only on WS2022 (WS2025 and WS2019) hosted containers but passes on Win 11 hosted containers.Details
1) Repro steps results:
Given the following dockerfile:
2) build the image on WS2022:
3) Build the same image on Win11:
4) Investigating the DACLs between Win11 and WS2022
dockerfile:
build results on WS2022:
build results on Win11:
5) Alternative repro steps
NanoServer based containers always run with the low-priv ContainerUser. Try run a simple image on both WS2022 and Win11:
And then once inside the container, run:
On WS2022:
On Win11: