microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
953 stars 181 forks source link

pipe.go: add DialPipeAccessImpLevel #302

Closed dblohm7 closed 1 year ago

dblohm7 commented 1 year ago

I would like to use impersonation on the server side of the pipe, but I currently cannot because all pipes are connected using the anonymous impersonation level.

This patch adds a new function that provides the ability to explicitly specify the desired impersonation level.

Fixes #297

dblohm7 commented 1 year ago

@helsaawy is your team willing to accept this PR?

dblohm7 commented 1 year ago

@helsaawy Thanks for the review! Can you merge this, please?

tylersmalley commented 1 year ago

👋 @msscotb, checking in on this to see if it can be merged.