-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[vs17.10] Merge v17.10.46 into vs17.10 #12647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vs17.10] Merge v17.10.46 into vs17.10 #12647
Conversation
…bdirectory on every build Recreate temp on linux using CreateTempSubdirectory on every build ---- #### AI description (iteration 1) #### PR Classification Bug fix addressing a Linux-specific temporary folder security vulnerability. #### PR Summary This pull request enhances security in MSBuild on Linux by replacing the manual temporary folder creation logic with a reliable call to CreateTempSubdirectory, ensuring a unique and correctly set up temp folder on every build. - `src/Shared/TempFileUtilities.cs`: On Linux, the temp folder is now recreated via Directory.CreateTempSubdirectory instead of custom mkdir/chmod logic. - `src/Shared/TempFileUtilities.cs`: Removed the unused `userRWX` constant, cleaning up the code. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot --> ---- #### AI description (iteration 2) #### PR Classification This pull request is a security fix that updates the temporary folder creation mechanism on Linux. #### PR Summary The PR replaces the insecure native mkdir/chmod approach with a safer Directory.CreateTempSubdirectory method for Linux, ensuring that the temporary folder is freshly created on every build and addressing the risk of malicious folder creation. - **`src/Shared/TempFileUtilities.cs`**: Replaces the complex mkdir/chmod logic with a call to Directory.CreateTempSubdirectory for Linux and removes the obsolete userRWX constant. - **`eng/Versions.props`**: Increments the version prefix to reflect the update. Related work items: #2541147
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR merges version tag v17.10.46 into the vs17.10 branch, updating the version number and simplifying temporary file directory creation logic on Linux by replacing custom security-focused code with .NET's built-in Directory.CreateTempSubdirectory method.
Key Changes
- Updated version from 17.10.45 to 17.10.46 in Versions.props
- Replaced complex Linux temp folder creation logic with
Directory.CreateTempSubdirectoryAPI - Removed custom user permission handling and security checks previously required for Linux environments
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| eng/Versions.props | Version bump from 17.10.45 to 17.10.46 |
| src/Shared/TempFileUtilities.cs | Simplified temp folder creation on Linux using .NET built-in API, removing manual permission management |
|
Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version. |
Merging tag v17.10.46 into vs17.10 branch