Fixing excessive unix file permissions (#14791)

* Fixing excessive unix file permissions

* CL

* reduce the permission from 750 to 700
This commit is contained in:
hghaf099
2022-04-01 12:57:38 -04:00
committed by GitHub
parent 42b4af494e
commit 1740186e72
6 changed files with 10 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ func (c *OperatorRaftSnapshotSaveCommand) Run(args []string) int {
w := &lazyOpenWriter{
openFunc: func() (io.WriteCloser, error) {
return os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o644)
return os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o600)
},
}