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/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>
3 years ago
..
ipnlocal ipn/ipnlocal: finish/fix up filename validation & encoding on disk 3 years ago
ipnserver ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 3 years ago
ipnstate ipn/ipnlocal, etc: require file sharing capability to send/recv files 3 years ago
localapi ipn/ipnlocal, etc: require file sharing capability to send/recv files 3 years ago
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 3 years ago
backend.go ipn/ipnlocal: add LocalBackend.SetDirectFileRoot 3 years ago
doc.go Move Linux client & common packages into a public repo. 4 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 3 years ago
handle.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 3 years ago
message.go ipn: set BackendServer's notify earlier; don't require Start 3 years ago
message_test.go ipn: move Options.Notify to its own method 3 years ago
prefs.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 3 years ago
prefs_clone.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 3 years ago
prefs_test.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 3 years ago
store.go wgkey: new package 3 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 4 years ago