Repository navigation
Conversation
…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 -->
Member
|
needs admin merge once pipelines finish, dotnet-unified-build (Validate user changes in VMR Run Validation Script) |
Co-authored-by: Copilot <[email protected]>
…test) Co-authored-by: Copilot <[email protected]>
akoeplinger
approved these changes
Nov 12, 2026
mmitche
approved these changes
Nov 12, 2026
wtgodbe
deleted the
internal-merge-10.0.1xx-2026-11-10-224709-8e0f8ed2-f049c099
branch
November 13, 2026 00:08
This was referenced Nov 13, 2026
JoeRobich
approved these changes
Nov 13, 2026
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges internal commit
8e0f8ed2312954727f8919d7d1c2f78b483b4ee7intorelease/10.0.1xx.