Skip to content

Adds argument to create pipes with FILE_FLAG_FIRST_PIPE_INSTANCE (rev2)

Adds the possibility (through a new argument called protect_first_instance in wing_named_pipe_listener_add_named_pipe) to create the named pipe, at the first creation, with the FILE_FLAG_FIRST_PIPE_INSTANCE flag set.

Subsequent creations will be performed without the flag set, but at that point the ACLs on the named pipe itself should guarantee that no malicious process can race the pipe creation in a secure named pipe setup.

For more details see FILE_FLAG_FIRST_PIPE_INSTANCE details at https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea .

Merge request reports