mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 11:36:56 +00:00
Merge pull request #50 from markdryan/fix-perms
qemu/image: Reduce permissions of .iso creation dir
This commit is contained in:
commit
66bfe83589
@ -49,8 +49,7 @@ func CreateCloudInitISO(ctx context.Context, scratchDir, isoPath string,
|
|||||||
_ = os.RemoveAll(configDrivePath)
|
_ = os.RemoveAll(configDrivePath)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
/* #nosec */
|
err := os.MkdirAll(dataDirPath, 0750)
|
||||||
err := os.MkdirAll(dataDirPath, 0755)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Unable to create config drive directory %s : %v",
|
return fmt.Errorf("Unable to create config drive directory %s : %v",
|
||||||
dataDirPath, err)
|
dataDirPath, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user