Merge pull request #2139 from rst0git/desc-permisions

checkpoint: Set descriptors.json file mode to 0600
This commit is contained in:
Mrunal Patel 2019-10-16 15:27:08 -07:00 committed by GitHub
commit 4e3701702e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1111,7 +1111,7 @@ func (c *linuxContainer) Checkpoint(criuOpts *CriuOpts) error {
return err return err
} }
err = ioutil.WriteFile(filepath.Join(criuOpts.ImagesDirectory, descriptorsFilename), fdsJSON, 0655) err = ioutil.WriteFile(filepath.Join(criuOpts.ImagesDirectory, descriptorsFilename), fdsJSON, 0600)
if err != nil { if err != nil {
return err return err
} }