Skip to content

Commit

Permalink
node-installer: write kata config with less perms
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Nov 8, 2024
1 parent 8da19c0 commit 636fce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeinstaller/node-installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func containerdRuntimeConfig(basePath, configPath string, platform platforms.Pla
if err != nil {
return fmt.Errorf("marshaling kata runtime config: %w", err)
}
return os.WriteFile(configPath, rawConfig, os.ModePerm)
return os.WriteFile(configPath, rawConfig, 0o644)
}

func patchContainerdConfig(runtimeHandler, basePath, configPath string, platform platforms.Platform, debugRuntime bool) error {
Expand Down

0 comments on commit 636fce7

Please sign in to comment.