Skip to content

Merging internal commits for release/10.0.1xx - #10884

Merged
wtgodbe merged 142 commits into
release/10.0.1xxfrom
internal-merge-10.0.1xx-2026-11-10-224709-8e0f8ed2-f049c099
Nov 13, 2026
Merged

wtgodbe merged 142 commits into
release/10.0.1xxfrom
internal-merge-10.0.1xx-2026-11-10-224709-8e0f8ed2-f049c099

Conversation

@dotnet-release-bot

Copy link
Copy Markdown
Contributor

Merges internal commit 8e0f8ed2312954727f8919d7d1c2f78b483b4ee7 into release/10.0.1xx.

Mirroring and others added 30 commits September 22, 2026 21:18
…dle permissions itself

If a user tries to run a .NET process with `sudo -E --preserve-env=HOME` in a Docker container, named mutexes would be created/modified in the user's `HOME` directory by `root`. Don't block this as the VMR depends on this being allowed for SB Validation.

The user can get themselves into a bad state (future mutex's file backing or containing directories could be root-owned) but that's an understood situation (as `sudo -E --preserve-env=HOME` is already recommended against.

----
#### AI description  (iteration 5)
#### PR Classification
Bug fix and code simplification: this PR simplifies directory existence/permission checks in shared memory handling and removes the special-cased logic for "system directories", while tightening permission masks for user-specific directories.

#### PR Summary
This PR refactors `EnsureDirectoryExists` and `EnsureDirectoryExistsAt` in `sharedmemory.cpp` to simplify logic by removing the special-casing for system directories and permission mismatch checks, likely addressing an issue where directory permission validation was causing failures.
- `sharedmemory.cpp`: Simplified `EnsureDirectoryExistsAt` by removing complex `fstat`-based permission validation after directory creation/opening.
- `sharedmemory.cpp`: Simplified `EnsureDirectoryExists` by removing `isSystemDirectory`-specific permission checks and ownership validation, now only checking directory existence via `lstat`.
- `sharedmemory.cpp`: Changed `PermissionsMask_AllUsers_ReadWriteExecute` to `PermissionsMask_OwnerUser_ReadWriteExecute` when creating user-specific shared files directories.
- `sharedmemory.cpp` and `sharedmemory.h`: Removed the `isSystemDirectory` parameter from `EnsureDirectoryExists` and its call sites, eliminating the associated assertion and special handling.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
@dotnet-policy-service
dotnet-policy-service Bot requested review from a team November 12, 2026 16:49
@JanProvaznik

Copy link
Copy Markdown
Member

needs admin merge once pipelines finish, dotnet-unified-build (Validate user changes in VMR Run Validation Script)
dotnet-unified-build (Validate user changes in VMR Run Validation Script) is supposed to fail in internal->public merge

@wtgodbe
wtgodbe merged commit e84ba91 into release/10.0.1xx Nov 13, 2026
9 of 11 checks passed
@wtgodbe
wtgodbe deleted the internal-merge-10.0.1xx-2026-11-10-224709-8e0f8ed2-f049c099 branch November 13, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.