tailscale/util/winutil
Aaron Klotz 2b62cb54a7 net/dns, util/winutil: improve detection of group policy affecting NRPT
Due to a customer issue, I investigated the Windows Dnscache service more
intensively. I learned that the only time it attempts to read the NRPT
from group policy is in response to a group policy change notification.

Under the hypothesis that policy refresh is not effectively delivering GP
notifications due to its dependency on reaching a DC, I replaced our use
of the RefreshPolicyEx with the quasi-documented GenerateGPNotification API.

Tests have been updated to ensure they check that they are running as
LocalSystem, which is required for GenerateGPNotification.

Fixes #20187

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2026-07-10 13:53:26 -06:00
..
authenticode all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
conpty all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
gp net/dns, util/winutil: improve detection of group policy affecting NRPT 2026-07-10 13:53:26 -06:00
policy all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
s4u all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
testdata/testrestartableprocesses all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
winenv all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
mksyscall.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
restartmgr_windows_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
restartmgr_windows.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
startupinfo_windows.go all: fix more typos caused by unnecessary repetition 2026-07-06 10:36:17 +01:00
subprocess_windows_test.go all: cleanup unused code, part 2 (#10670) 2023-12-21 17:40:03 -08:00
svcdiag_windows.go all: don't repeat the the word "the" unnecessarily 2026-06-18 16:32:08 +01:00
userprofile_windows_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
userprofile_windows.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
winutil_notwindows.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
winutil_windows_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
winutil_windows.go net/dns, util/winutil: improve detection of group policy affecting NRPT 2026-07-10 13:53:26 -06:00
winutil.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
zsyscall_windows.go go.mod: bump golang.org/x/crypto (#17907) 2025-11-17 09:05:18 -08:00