mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ func newBuilder(opts ...Option) *builder {
|
||||
s.format = FormatYAML
|
||||
}
|
||||
if s.permissions == 0 {
|
||||
s.permissions = 0600
|
||||
s.permissions = 0644
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user