mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
c98652c333
Since users can run tailscaled in a variety of ways (root, non-root, non-root with process capabilities on Linux), this check will print the current process permissions to the log to aid in debugging. Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: Ida93a206123f98271a0c664775d0baba98b330c7
18 lines
332 B
Go
18 lines
332 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !(linux || darwin || freebsd || openbsd)
|
|
|
|
package permissions
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"tailscale.com/types/logger"
|
|
)
|
|
|
|
func permissionsImpl(logf logger.Logf) error {
|
|
logf("unsupported on %s/%s", runtime.GOOS, runtime.GOARCH)
|
|
return nil
|
|
}
|