Merge branch 'fix-privileged-check-cdi-mode' into 'main'

Return empty list of devices for unprivileged containers when...

See merge request nvidia/container-toolkit/container-toolkit!337
This commit is contained in:
Evan Lezar 2023-03-13 07:36:25 +00:00
commit 92ea8be309

View File

@ -104,7 +104,7 @@ func getDevicesFromSpec(logger *logrus.Logger, ociSpec oci.Spec, cfg *config.Con
logger.Warningf("Ignoring devices specified in NVIDIA_VISIBLE_DEVICES: %v", devices)
return devices, nil
return nil, nil
}
// Modify loads the CDI registry and injects the specified CDI devices into the OCI runtime specification.