2021-03-18 13:23:56 -04:00
|
|
|
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2022-02-02 16:25:57 -08:00
|
|
|
//go:build !windows
|
|
|
|
|
2021-03-18 13:23:56 -04:00
|
|
|
package winutil
|
|
|
|
|
2022-11-24 15:51:19 -07:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os/user"
|
|
|
|
"runtime"
|
|
|
|
)
|
|
|
|
|
2022-02-02 10:55:32 -07:00
|
|
|
const regBase = ``
|
|
|
|
|
2022-01-10 13:10:02 -07:00
|
|
|
func getPolicyString(name, defval string) string { return defval }
|
|
|
|
|
|
|
|
func getPolicyInteger(name string, defval uint64) uint64 { return defval }
|
|
|
|
|
2022-02-02 10:55:32 -07:00
|
|
|
func getRegString(name, defval string) string { return defval }
|
2021-03-18 13:23:56 -04:00
|
|
|
|
2022-02-02 10:55:32 -07:00
|
|
|
func getRegInteger(name string, defval uint64) uint64 { return defval }
|
2021-09-28 16:29:47 -06:00
|
|
|
|
2022-02-02 10:55:32 -07:00
|
|
|
func isSIDValidPrincipal(uid string) bool { return false }
|
2022-11-24 15:51:19 -07:00
|
|
|
|
|
|
|
func lookupPseudoUser(uid string) (*user.User, error) {
|
|
|
|
return nil, fmt.Errorf("unimplemented on %v", runtime.GOOS)
|
|
|
|
}
|
2023-01-04 21:31:26 -08:00
|
|
|
|
|
|
|
func IsCurrentProcessElevated() bool { return false }
|