This adds the NotifyInitialPolicy watch option and the Policy field in Notify so that clients can receive the effective policy snapshot via IPN bus. This extends policyclient.Client so ipnlocal can get and watch policy snapshots, which is used by sysPolicyChanged to notify watchers. User-scoped policy store registration, management, and cleanup will be added in a follow-up Updates tailscale/corp#42259 Signed-off-by: kari <kari@tailscale.com>
13 lines
328 B
Go
13 lines
328 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !ts_omit_syspolicy
|
|
|
|
package policyclient
|
|
|
|
import "tailscale.com/util/syspolicy/setting"
|
|
|
|
// PolicySnapshot is an alias for [settings.Snapshot] unless syspolicy is omitted
|
|
// from the build.
|
|
type policySnapshot = setting.Snapshot
|