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 d17ad5f920
commit a1e673800f
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
* Use : as a config --set list separator. This fixes a bug in modifying lists in the config file with the `nvidia-ctk config` command.
* Add `RUNTIME_CONFIG_OVERRIDE` (`--runtime-config-override`) to the `nvidia-ctk runtime configure` command and the toolkit container to allow for containerd runtime options to be set directly. This can be used to override the `SystemdCroup` option explicitly, for example.
* Ensure consistent construction of libraries for CDI spec generation.
* Ensure that `nvidia-ctk cdi transform` creates specs with world-readable permissions.
## v1.15.0

View File

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