We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 070b698 + 2e442ea commit ce70245Copy full SHA for ce70245
1 file changed
pkg/cri/server/helpers_linux.go
@@ -156,6 +156,9 @@ func (c *criService) seccompEnabled() bool {
156
157
// openLogFile opens/creates a container log file.
158
func openLogFile(path string) (*os.File, error) {
159
+ if err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {
160
+ return nil, err
161
+ }
162
return os.OpenFile(path, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0640)
163
}
164
0 commit comments