Skip to content

Commit

Permalink
Merge pull request moby#47515 from vvoland/v23.0-47498
Browse files Browse the repository at this point in the history
[23.0 backport] daemon: overlay2: remove world writable permission from the lower file
  • Loading branch information
thaJeztah authored Mar 6, 2024
2 parents 548f37a + f2954d7 commit 64b5835
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 @@ -412,7 +412,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 64b5835

Please sign in to comment.