Skip to content

NamedPipeServerStream: Provide support for WRITE_DAC #23554

@ianhays

Description

@ianhays

When creating a NamedPipeServerStream on Windows, WRITE_DAC on CreateNamedPipe will always be unset. On netfx we had a constructor that took a PipeSecurity object with ACL info but we had to take that out for netcore/netstandard.

We should add a new entry on netcoreapp to the PipeOptions enum to set WRITE_DAC:

    [Flags]
    public enum PipeOptions
    {
        None = 0x0,
        WriteThrough = unchecked((int)0x80000000),  // corresponds to FILE_FLAG_WRITE_THROUGH
        Asynchronous = unchecked((int)0x40000000),  // corresponds to FILE_FLAG_OVERLAPPED,
        WriteDac = unchecked((int)0x00040000L),     // corresponds to WRITE_DAC
    }

cc: @bartonjs @stephentoub @jaredpar

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.IO

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions