From 1d6ecb1e51266cf406a7a0fab877a2148e57c9f2 Mon Sep 17 00:00:00 2001 From: Nahum Shalman Date: Mon, 23 Mar 2026 10:45:35 -0400 Subject: [PATCH] safesocket, ipn/ipnserver: use PeerCreds on solaris and illumos Updates 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 c9a4c6e89..a8954a47a 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 6be8ae5b8..60291e134 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