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 <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2024-06-05 11:27:01 +02:00
parent dfc8e22e12
commit 71e0b8590f

View File

@ -77,7 +77,7 @@ func newBuilder(opts ...Option) *builder {
s.format = FormatYAML s.format = FormatYAML
} }
if s.permissions == 0 { if s.permissions == 0 {
s.permissions = 0600 s.permissions = 0644
} }
return s return s
} }