mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-09 11:52:00 -04:00
ipn/auditlog: store the audit log in the backend's state directory
The store path was hardcoded to %ProgramData%\Tailscale\audit-log.json on Windows, so a tailscaled run by a regular user with its own --statedir logged "[unexpected] failed to create audit log store ... Access is denied" on every profile switch. Use the backend's TailscaleVarRoot when it is known, falling back to the platform default otherwise. For the Windows service the state directory is %ProgramData%\Tailscale, so its path is unchanged; an explicit SetStoreFilePath still wins. Updates #2791 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: I5d7f9b1c3e5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f