You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/syspolicy
Brad Fitzpatrick 2b3e533048 util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl
This is step 4 of making syspolicy a build-time feature.

This adds a policyclient.Get() accessor to return the correct
implementation to use: either the real one, or the no-op one. (A third
type, a static one for testing, also exists, so in general a
policyclient.Client should be plumbed around and not always fetched
via policyclient.Get whenever possible, especially if tests need to use
alternate syspolicy)

Updates #16998
Updates #12614

Change-Id: Iaf19670744a596d5918acfa744f5db4564272978
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 months ago
..
internal util/syspolicy/*: move syspolicy keys to new const leaf "pkey" package 3 months ago
pkey util/syspolicy/*: move syspolicy keys to new const leaf "pkey" package 3 months ago
policyclient util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
ptype util/syspolicy/{setting,ptype}: move PreferenceOption and Visibility to new leaf package 3 months ago
rsop util/syspolicy/{setting,ptype}: move PreferenceOption and Visibility to new leaf package 3 months ago
setting util/syspolicy/{setting,ptype}: move PreferenceOption and Visibility to new leaf package 3 months ago
source util/syspolicy/{setting,ptype}: move PreferenceOption and Visibility to new leaf package 3 months ago
handler.go util/syspolicy/*: move syspolicy keys to new const leaf "pkey" package 3 months ago
policy_keys.go util/syspolicy/*: move syspolicy keys to new const leaf "pkey" package 3 months ago
policy_keys_test.go util/syspolicy/*: move syspolicy keys to new const leaf "pkey" package 3 months ago
syspolicy.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
syspolicy_test.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
syspolicy_windows.go all: unify some redundant testing.TB interface copies 8 months ago