Merge pull request #13713 from swordqiu/automated-cherry-pick-of-#13711-upstream-release-3.8

Automated cherry pick of #13711: fix: host deploy mkdir permission
This commit is contained in:
Zexi Li
2022-03-17 21:25:13 +08:00
committed by GitHub

View File

@@ -50,7 +50,7 @@ func (d *sGuestRootFsDriver) DeployFiles(deploys []*deployapi.DeployContent) err
}
dirname := filepath.Dir(deploy.Path)
if !d.GetPartition().Exists(dirname, caseInsensitive) {
modeRWXOwner := syscall.S_IRUSR | syscall.S_IWUSR | syscall.S_IXUSR
modeRWXOwner := syscall.S_IRUSR | syscall.S_IWUSR | syscall.S_IXUSR | syscall.S_IRGRP | syscall.S_IXGRP | syscall.S_IROTH | syscall.S_IXOTH
err := d.GetPartition().Mkdir(dirname, modeRWXOwner, caseInsensitive)
if err != nil {
log.Errorln(err)