1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:08:33 -06:00
go/internal/lsp/lsprpc
Rob Findley aa4048aca1 internal/lsp/lsprpc: don't connect to sockets owned by different users
When running gopls as a forwarder it attempts to forward the LSP to a
remote daemon. On posix systems, by default this uses a unix domain
socket at a predictable filesystem location.

As an extra precaution, attempt to verify that the remote socket is in
fact owned by the current user.

Also, change the default TCP listen address used on windows to bind to
localhost.

Updates golang/go#34111

Change-Id: Ib24886d290089a773851c5439586c3ddc9eb797d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/222246
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-03-09 18:08:59 +00:00
..
autostart_default.go internal/lsp/lsprpc: don't connect to sockets owned by different users 2020-03-09 18:08:59 +00:00
autostart_posix.go internal/lsp/lsprpc: don't connect to sockets owned by different users 2020-03-09 18:08:59 +00:00
lsprpc_test.go internal/lsp: move the debug.Instance onto the Context 2020-03-03 22:54:53 +00:00
lsprpc.go internal/lsp/lsprpc: don't connect to sockets owned by different users 2020-03-09 18:08:59 +00:00
telemetry.go internal/lsp: refactor LSP server instantiation 2020-02-06 23:12:37 +00:00