all: adjust Unix permissions for those without umasks

Fixes tailscale/corp#1165

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-01-11 19:16:14 -08:00
committed by Brad Fitzpatrick
parent 6b08303b0f
commit d6e9fb1df0
5 changed files with 6 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ func listen(path string, port uint16) (ln net.Listener, _ uint16, err error) {
if err != nil {
return nil, 0, err
}
os.Chmod(path, 0666)
os.Chmod(path, 0600)
return pipe, 0, err
}