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/cmd/tailscaled
Aaron Klotz 9ebb5d4205 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>
3 years ago
..
debug.go cmd/tailscaled: add debug flag to print interfaces just once 3 years ago
depaware.txt ipn, paths: ensure that the state directory for Windows has the correct perms 3 years ago
install_darwin.go cmd/tailscaled: remove tailscaled binary on uninstall-system-daemon 3 years ago
install_windows.go ipn/ipnlocal: add file sharing to windows shell 3 years ago
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 4 years ago
tailscaled.go cmd/tailscaled: disable netns earlier in userspace-networking mode 3 years ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: start after NetworkManager and systemd-resolved. 3 years ago
tailscaled_bird.go wgengine/userspace: add support to automatically enable/disable the tailscale 3 years ago
tailscaled_notwindows.go all: gofmt with Go 1.17 3 years ago
tailscaled_windows.go wgengine/router: take a link monitor 3 years ago