From d69e90844b8e376032934c9acdc68883a86070fa Mon Sep 17 00:00:00 2001 From: Nahum Shalman Date: Mon, 27 Oct 2025 19:42:23 +0000 Subject: [PATCH] solaris and illumos use PeerCreds too Per tailscale/peercred#10 Signed-off-by: Nahum Shalman --- ipn/ipnserver/actor.go | 2 +- safesocket/safesocket.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipn/ipnserver/actor.go b/ipn/ipnserver/actor.go index 628e3c37c..f9c1f0ac7 100644 --- a/ipn/ipnserver/actor.go +++ b/ipn/ipnserver/actor.go @@ -237,7 +237,7 @@ func connIsLocalAdmin(logf logger.Logf, ci *ipnauth.ConnIdentity, operatorUID st // This is a standalone tailscaled setup, use the same logic as on // Linux. fallthrough - case "linux": + case "linux", "solaris", "illumos": if !buildfeatures.HasUnixSocketIdentity { // Everybody is an admin if support for unix socket identities // is omitted for the build. diff --git a/safesocket/safesocket.go b/safesocket/safesocket.go index 287cdca59..585c48398 100644 --- a/safesocket/safesocket.go +++ b/safesocket/safesocket.go @@ -120,7 +120,7 @@ func PlatformUsesPeerCreds() bool { // runtime.GOOS value instead of using the current one. func GOOSUsesPeerCreds(goos string) bool { switch goos { - case "linux", "darwin", "freebsd": + case "linux", "darwin", "freebsd", "solaris", "illumos": return true } return false