Merge pull request #50 from markdryan/fix-perms

qemu/image: Reduce permissions of .iso creation dir
This commit is contained in:
Mark Ryan 2018-09-13 11:59:19 +01:00 committed by GitHub
commit 66bfe83589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,8 +49,7 @@ func CreateCloudInitISO(ctx context.Context, scratchDir, isoPath string,
_ = os.RemoveAll(configDrivePath)
}()
/* #nosec */
err := os.MkdirAll(dataDirPath, 0755)
err := os.MkdirAll(dataDirPath, 0750)
if err != nil {
return fmt.Errorf("Unable to create config drive directory %s : %v",
dataDirPath, err)