Browse Source

Merge pull request #34419 from keloyang/config.v2.json

security: Chmod config.v2.json to 0600
Yong Tang 8 years ago
parent
commit
e4c19aa529
1 changed files with 1 additions and 1 deletions
  1. 1 1
      container/container.go

+ 1 - 1
container/container.go

@@ -167,7 +167,7 @@ func (container *Container) toDisk() (*Container, error) {
 	}
 	}
 
 
 	// Save container settings
 	// Save container settings
-	f, err := ioutils.NewAtomicFileWriter(pth, 0644)
+	f, err := ioutils.NewAtomicFileWriter(pth, 0600)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}