tailscale/ipn
Aaron Klotz f3be05e6ea 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>
2021-09-24 15:12:20 -07:00
..
ipnlocal tailcfg,ipn/ipnlocal: support DNSConfig.Routes with empty values [mapver 23] 2021-08-25 11:42:10 -07:00
ipnserver logpolicy: don't use C:\ProgramData use for tailscale-ipn GUI's log dir 2021-09-24 13:54:24 -07:00
ipnstate ipn/ipnstate: move tailscale status "active" determination to tailscaled 2021-08-04 09:10:49 -07:00
localapi client/tailscale,ipn/localapi: warn on tailscale/tailscaled version skew 2021-08-19 08:36:13 -07:00
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 2021-04-01 11:57:24 -07:00
backend.go ipnlocal: accept a new opts.UpdatePrefs field. 2021-05-04 15:19:25 -04:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 2021-04-18 08:12:18 -07:00
handle.go ipn: another controlplane synonym 2021-07-13 08:22:10 -07:00
message.go ipn: allow b to be nil in NewBackendServer 2021-05-19 09:33:19 -07:00
message_test.go ipn: allow b to be nil in NewBackendServer 2021-05-19 09:33:19 -07:00
prefs.go ipn: another controlplane synonym 2021-07-13 08:22:10 -07:00
prefs_clone.go Add prefs.LoggedOut to fix several state machine bugs. 2021-04-30 09:18:13 -04:00
prefs_test.go ipn, etc: use controlplane.tailscale.com 2021-06-28 09:38:23 -07:00
store.go ipn, paths: unconditionally attempt to set state dir perms, but only if the state dir is ours 2021-09-24 15:12:20 -07:00
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 2020-05-13 23:12:35 -04:00