drive: don't allow DELETE on read-only shares

Fixes tailscale/corp#19646

Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
Percy Wegmann
2024-04-30 20:31:49 -05:00
committed by Percy Wegmann
parent 7455e027e9
commit 2648d475d7
2 changed files with 32 additions and 1 deletions

View File

@ -380,6 +380,7 @@ var writeMethods = map[string]bool{
"MKCOL": true,
"MOVE": true,
"PROPPATCH": true,
"DELETE": true,
}
// canSudo checks wether we can sudo -u the configured executable as the