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/paths
Aaron Klotz 21e9f98fc1 ipn, paths: unconditionally attempt to set state dir perms, but only if the state dir is ours
We unconditionally set appropriate perms on the statefile dir.

We look at the basename of the statefile dir, and if it is "tailscale", then
we set perms as appropriate.

Fixes #2925
Updates #2856

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
3 years ago
..
migrate.go ipn, paths: ensure that the state directory for Windows has the correct perms 3 years ago
paths.go ipn, paths: ensure that the state directory for Windows has the correct perms 3 years ago
paths_unix.go ipn, paths: unconditionally attempt to set state dir perms, but only if the state dir is ours 3 years ago
paths_windows.go ipn, paths: unconditionally attempt to set state dir perms, but only if the state dir is ours 3 years ago