Repository navigation
Set execute bit on bundled Native AOT SDK tool executables - #7297
Merged
Merged
Conversation
The 'aspnetcoretools' aggregate ships native AOT SDK tool executables (dotnet-dev-certs, dotnet-user-jwts, dotnet-user-secrets). Their nupkg does not carry the Unix execute bit, and ChmodPublishDir's blanket 'chmod 644' clears any bit before the SDK is laid out, so the tools shipped as -rw-r--r-- and failed at runtime with 'Permission denied' (errno 13) when the SDK execs them directly. Re-add execute permission for these executables in ChmodPublishDir, mirroring the existing Roslyn/MSBuild apphost and dotnet-aot native lib chmods. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the SDK layout step (in the src/sdk repo content within the VMR) to ensure certain bundled aspnetcoretools native AOT tool executables regain Unix execute permissions after the publish directory is normalized to 644/755.
Changes:
- Extend
ChmodPublishDirto identifyaspnetcoretoolsdotnet-*executables inDotnetTools/aspnetcoretools/**(excluding files with extensions) andchmod 755them. - Add an explanatory comment describing why the execute bit must be re-applied for these tools.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
wtgodbe
approved these changes
Jun 19, 2026
joeloff
approved these changes
Jun 19, 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.
The 'aspnetcoretools' aggregate ships native AOT SDK tool executables (dotnet-dev-certs, dotnet-user-jwts, dotnet-user-secrets). Their nupkg does not carry the Unix execute bit, and ChmodPublishDir's blanket 'chmod 644' clears any bit before the SDK is laid out, so the tools shipped as -rw-r--r-- and failed at runtime with 'Permission denied' (errno 13) when the SDK execs them directly.
Re-add execute permission for these executables in ChmodPublishDir, mirroring the existing Roslyn/MSBuild apphost and dotnet-aot native lib chmods.