From 71e0b8590fe2ebe2636bbb9d3e6a74abfadec6dd Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 5 Jun 2024 11:27:01 +0200 Subject: [PATCH] Set default CDI spec permissions to 644 Although the nvidia-ctk cdi generate command generates specs with 644 permissions, the nvidia-ctk cdi transform commands do not. This change sets the default permissions to 600 instead of 644. Signed-off-by: Evan Lezar --- pkg/nvcdi/spec/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nvcdi/spec/builder.go b/pkg/nvcdi/spec/builder.go index ec8cc144..b7dffd98 100644 --- a/pkg/nvcdi/spec/builder.go +++ b/pkg/nvcdi/spec/builder.go @@ -77,7 +77,7 @@ func newBuilder(opts ...Option) *builder { s.format = FormatYAML } if s.permissions == 0 { - s.permissions = 0600 + s.permissions = 0644 } return s }