-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
API Proposal: Add pipe creation extension methods that take an ACL #31112
Comments
We should not make them extension methods. We should follow the other pattern and create new static types suffixed with namespace System.IO.Pipes
{
public static class AnonymousPipeServerStreamAcl
{
public static AnonymousPipeServerStream Create(
PipeDirection direction,
HandleInheritability inheritability,
int bufferSize,
PipeSecurity pipeSecurity);
}
public static class NamedPipeServerStreamAcl
{
public static NamedPipeServerStream Create(
string pipeName,
PipeDirection direction,
int maxNumberOfServerInstances,
PipeTransmissionMode transmissionMode,
PipeOptions options,
int inBufferSize,
int outBufferSize,
PipeSecurity pipeSecurity,
HandleInheritability inheritability = HandleInheritability.None,
PipeAccessRights additionalAccessRights = default);
}
} |
Definitely excited to see the work on this. Really looking forward to it being completed! |
Add AnonymousPipeServerStream method that takes an ACL The original corefx PR was already signed off, but the CI did not finish on time before the 5pm deadline: dotnet/corefx#42392 Approved API proposal: dotnet/corefx#41657 We don't currently have a way to create a pipe with a given ACL in .NET Core. We can modify the ACL, but it would be more secure to have the proper ACL on the pipe from the start. This PR adds a new static class and method that can create an AnonymousPipeServerStream taking a PipeSecurity object, reusing code that can already perform this task.
Add NamedPipeServerStream method that takes an ACL Approved API proposal: dotnet/corefx#41657 We don't currently have a way to create a pipe with a given ACL in .NET Core. We can modify the ACL, but it would be more secure to have the proper ACL on the pipe from the start. This PR adds a new static class and method that can create an NamedPipeServerStream taking a PipeSecurity object, reusing code that can already perform this task.
Fixed with #317 |
I'm super excited the work on this has been complete! Do you have an ETA on a release date? |
@TonyValenti it's targeted for 5.0. You can always consume a nightly build or a preview to test these new APIs. |
I don't see this for Anonymous pipes, was that intentional? |
Summary
Similar to #31095, we don't currently have a way to create a pipe with a given ACL in .NET Core. We can modify the ACL, but it would be more secure to have the proper ACL on the pipe from the start.
The Pipe ACL
PipeSecurity
is already exposed in theSystem.IO.Pipes
assembly , we should add creation extension methods to the existingPipesAclExtensions
.Proposal
Add the following two creation methods to the existing
PipesAclExtensions
class in theSystem.IO.Pipes
assembly:Details
Since these are already in the same assembly as the modified types it should be pretty straight-forward to implement.
Related Issues
#31095 API Proposal: Add file and directory creation methods that take an ACL
CC: @danmosemsft, @ericstj, @terrajobst
The text was updated successfully, but these errors were encountered: