1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #43200 from thaJeztah/fix_overlay_fuse_permissions

daemon/graphdriver/fuse-overlayfs: Init(): fix directory permissions (staticcheck)
This commit is contained in:
Justin Cormack 2022-02-07 14:59:10 +00:00 committed by GitHub
commit 4b3471ddc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap
if err := idtools.MkdirAllAndChown(home, 0710, dirID); err != nil { if err := idtools.MkdirAllAndChown(home, 0710, dirID); err != nil {
return nil, err return nil, err
} }
if err := idtools.MkdirAllAndChown(path.Join(home, linkDir), 700, currentID); err != nil { if err := idtools.MkdirAllAndChown(path.Join(home, linkDir), 0700, currentID); err != nil {
return nil, err return nil, err
} }