tailscale/cmd
Aaron Klotz 6b5081ab31 ipn, paths: ensure that the state directory for Windows has the correct perms
ProgramData has a permissive ACL. For us to safely store machine-wide
state information, we must set a more restrictive ACL on our state directory.
We set the ACL so that only talescaled's user (ie, LocalSystem) and the
Administrators group may access our directory.

We must include Administrators to ensure that logs continue to be easily
accessible; omitting that group would force users to use special tools to
log in interactively as LocalSystem, which is not ideal.

(Note that the ACL we apply matches the ACL that was used for LocalSystem's
AppData\Local).

There are two cases where we need to reset perms: One is during migration
from the old location to the new. The second case is for clean installations
where we are creating the file store for the first time.

Updates #2856

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2021-09-24 13:55:11 -07:00
..
addlicense cmd/addlicense: add command to add licenseheaders to generated code 2021-07-19 15:31:56 -07:00
cloner cmd/cloner: support maps with clone ptrs 2021-06-22 22:11:38 -07:00
derper cmd/derper: dial VPC address with right context 2021-07-29 14:29:31 -07:00
derpprobe cmd/derpprobe: add in a delay to wait for mesh info to sync 2021-07-19 07:52:55 -07:00
hello all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
mkpkg cmd/mkpkg: allow zero files in a package. 2021-06-07 16:22:23 -07:00
speedtest Implemented Commandline Download Speedtest (#2064) 2021-07-15 14:43:13 -04:00
tailscale ipn, paths: ensure that the state directory for Windows has the correct perms 2021-09-24 13:55:11 -07:00
tailscaled ipn, paths: ensure that the state directory for Windows has the correct perms 2021-09-24 13:55:11 -07:00
testcontrol cmd/testcontrol: add test control server 2021-08-19 17:50:48 -07:00
tsshd all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00