1
0

peercred_windows.go 525 B

1234567891011121314151617181920
  1. //go:build windows
  2. package localapi
  3. import (
  4. "errors"
  5. "net"
  6. )
  7. // peerCheckSupported is false where the connecting process is not identified separately.
  8. //
  9. // On windows there is nothing to add: the pipe's security descriptor already admits
  10. // only the account nebula runs as, which is the check, not a second opinion on it.
  11. const peerCheckSupported = false
  12. var errNoPeerCheck = errors.New("peer credentials are not available on this platform")
  13. func peerUID(conn net.Conn) (uint32, error) {
  14. return 0, errNoPeerCheck
  15. }