tailscale/ipn
Brad Fitzpatrick 8570f82c8b ipn/ipnlocal: finish/fix up filename validation & encoding on disk
It used to just store received files URL-escaped on disk, but that was
a half done lazy implementation, and pushed the burden to callers to
validate and write things to disk in an unescaped way.

Instead, do all the validation in the receive handler and only
accept filenames that are UTF-8 and in the intersection of valid
names that all platforms support.

Fixes tailscale/corp#1594

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-04-19 22:39:53 -07:00
..
ipnlocal ipn/ipnlocal: finish/fix up filename validation & encoding on disk 2021-04-19 22:39:53 -07:00
ipnserver ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 2021-04-19 10:12:41 -07:00
ipnstate ipn/ipnlocal, etc: require file sharing capability to send/recv files 2021-04-16 10:58:19 -07:00
localapi ipn/ipnlocal, etc: require file sharing capability to send/recv files 2021-04-16 10:58:19 -07:00
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 2021-04-01 11:57:24 -07:00
backend.go ipn/ipnlocal: add LocalBackend.SetDirectFileRoot 2021-04-12 14:29:45 -07: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{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 2021-04-18 08:12:18 -07:00
message_test.go ipn: move Options.Notify to its own method 2021-04-06 22:12:40 -07:00
message.go ipn: set BackendServer's notify earlier; don't require Start 2021-04-12 10:38:51 -07:00
prefs_clone.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 2021-04-19 10:12:41 -07:00
prefs_test.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 2021-04-19 10:12:41 -07:00
prefs.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 2021-04-19 10:12:41 -07:00
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 2020-05-13 23:12:35 -04:00
store.go wgkey: new package 2020-12-30 17:33:02 -08:00