Conversation
3 tasks
…et permissions in .NET 11 Agent-Logs-Url: https://github.com/dotnet/docs/sessions/ec7bd413-d926-4f72-959f-6376e84957ae Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix NamedPipeServerStream Unix socket permissions
docs: Breaking change – NamedPipeServerStream + PipeOptions.CurrentUserOnly tightens Unix socket file permissions to 0600 in .NET 11
May 4, 2026
gewarren
approved these changes
May 4, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR documents a new .NET 11 Preview 4 breaking change for Unix named pipes: NamedPipeServerStream now applies 0600 permissions when you use PipeOptions.CurrentUserOnly. It adds the compatibility article and wires it into the .NET 11 breaking-changes navigation.
Changes:
- Adds a new core-libraries breaking-change article for Unix socket permission tightening and shared-server ratcheting behavior.
- Adds the article to the .NET 11 breaking-changes index.
- Adds the article to the compatibility TOC under Core .NET libraries.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
docs/core/compatibility/core-libraries/11/namedpipeserverstream-unix-permissions.md |
New breaking-change article describing the Unix permission change, rationale, guidance, and affected APIs. |
docs/core/compatibility/11.md |
Adds the new breaking-change article to the .NET 11 overview table. |
docs/core/compatibility/toc.yml |
Adds the new article to the compatibility navigation tree. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
gewarren
reviewed
May 4, 2026
…Unix permission change note Agent-Logs-Url: https://github.com/dotnet/docs/sessions/fd1dd68f-55c1-48e9-b156-338a3d6ca39e Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
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.
In .NET 11 Preview 4,
NamedPipeServerStreamwithPipeOptions.CurrentUserOnlyon Unix nowchmods the underlying domain socket to0600immediately afterbind(). Previously the socket inherited the process umask (0644/0755), with cross-user rejection deferred to connect-time peer-credential checks. Also documents the one-way ratcheting behavior for in-process shared server instances.Changes
docs/core/compatibility/core-libraries/11/namedpipeserverstream-unix-permissions.mdNamedPipeServerStreaminstancesCurrentUserOnlywhen cross-user access is intentional, with caveats about umask and directory permissions)docs/core/compatibility/11.md— added entry under Core .NET librariesdocs/core/compatibility/toc.yml— added entry under .NET 11 > Core .NET librariesdocs/standard/io/how-to-use-named-pipes-for-network-interprocess-communication.md— added a[!NOTE]callout describing the .NET 11 behavior change forPipeOptions.CurrentUserOnlyon Unix, with a link to the breaking change articleInternal previews