mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 23:45:34 +00:00
3a74f2d2d7
This patch adds new functions to be used when accessing system policies, and revises callers to use the new functions. They first attempt the new registry path for policies, and if that fails, attempt to fall back to the legacy path. We keep non-policy variants of these functions because we should be able to retain the ability to read settings from locations that are not exposed to sysadmins for group policy edits. The remaining changes will be done in corp. Updates https://github.com/tailscale/tailscale/issues/3584 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
21 lines
590 B
Go
21 lines
590 B
Go
// 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.
|
|
|
|
//go:build !windows
|
|
// +build !windows
|
|
|
|
package winutil
|
|
|
|
const regBase = ``
|
|
|
|
func getPolicyString(name, defval string) string { return defval }
|
|
|
|
func getPolicyInteger(name string, defval uint64) uint64 { return defval }
|
|
|
|
func getRegString(name, defval string) string { return defval }
|
|
|
|
func getRegInteger(name string, defval uint64) uint64 { return defval }
|
|
|
|
func isSIDValidPrincipal(uid string) bool { return false }
|