mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 23:45:34 +00:00
e3d6236606
errors Updates tailscale/corp#14879 Signed-off-by: Claire Wang <claire@tailscale.com>
36 lines
887 B
Go
36 lines
887 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !windows
|
|
|
|
package winutil
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
"os/user"
|
|
"runtime"
|
|
)
|
|
|
|
const regBase = ``
|
|
|
|
var ErrNoValue = errors.New("no value because registry is unavailable on this OS")
|
|
|
|
func getPolicyString(name string) (string, error) { return "", ErrNoValue }
|
|
|
|
func getPolicyInteger(name string) (uint64, error) { return 0, ErrNoValue }
|
|
|
|
func getRegString(name string) (string, error) { return "", ErrNoValue }
|
|
|
|
func getRegInteger(name string) (uint64, error) { return 0, ErrNoValue }
|
|
|
|
func isSIDValidPrincipal(uid string) bool { return false }
|
|
|
|
func lookupPseudoUser(uid string) (*user.User, error) {
|
|
return nil, fmt.Errorf("unimplemented on %v", runtime.GOOS)
|
|
}
|
|
|
|
func IsCurrentProcessElevated() bool { return false }
|
|
|
|
func registerForRestart(opts RegisterForRestartOpts) error { return nil }
|