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
When creating a
NamedPipeServerStreamon Windows,WRITE_DAConCreateNamedPipewill always be unset. On netfx we had a constructor that took aPipeSecurityobject with ACL info but we had to take that out for netcore/netstandard.We should add a new entry on netcoreapp to the
PipeOptionsenum to set WRITE_DAC:cc: @bartonjs @stephentoub @jaredpar