safesocket, ipn/ipnserver: use PeerCreds on solaris and illumos

Updates tailscale/peercred#10

Signed-off-by: Nahum Shalman <nahamu@gmail.com>
main
Nahum Shalman 4 weeks ago committed by GitHub
parent 43782601d0
commit 1d6ecb1e51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ipn/ipnserver/actor.go
  2. 2
      safesocket/safesocket.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 // This is a standalone tailscaled setup, use the same logic as on
// Linux. // Linux.
fallthrough fallthrough
case "linux": case "linux", "solaris", "illumos":
if !buildfeatures.HasUnixSocketIdentity { if !buildfeatures.HasUnixSocketIdentity {
// Everybody is an admin if support for unix socket identities // Everybody is an admin if support for unix socket identities
// is omitted for the build. // is omitted for the build.

@ -120,7 +120,7 @@ func PlatformUsesPeerCreds() bool {
// runtime.GOOS value instead of using the current one. // runtime.GOOS value instead of using the current one.
func GOOSUsesPeerCreds(goos string) bool { func GOOSUsesPeerCreds(goos string) bool {
switch goos { switch goos {
case "linux", "darwin", "freebsd": case "linux", "darwin", "freebsd", "solaris", "illumos":
return true return true
} }
return false return false

Loading…
Cancel
Save