Skip to content

Commit

Permalink
Merge pull request moby#47498 from Dzejrou/lower-perm-fix
Browse files Browse the repository at this point in the history
daemon: overlay2: remove world writable permission from the lower file
  • Loading branch information
thaJeztah authored Mar 6, 2024
2 parents 7c7e453 + cadb124 commit cb8c8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/graphdriver/overlay2/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (d *Driver) create(id, parent string, opts *graphdriver.CreateOpts) (retErr
return err
}
if lower != "" {
if err := ioutils.AtomicWriteFile(path.Join(dir, lowerFile), []byte(lower), 0o666); err != nil {
if err := ioutils.AtomicWriteFile(path.Join(dir, lowerFile), []byte(lower), 0o644); err != nil {
return err
}
}
Expand Down

0 comments on commit cb8c8e9

Please sign in to comment.