nvidia-container-toolkit/cmd/nvidia-cdi-hook/disable-device-node-modification
Evan Lezar f2618d5c13
Add a hook to disable device node creation in a container
If required, this hook creates a modified params file (with ModifyDeviceFiles: 0) in a tmpfs
and mounts this over /proc/driver/nvidia/params.

This prevents device node creation when running tools such as nvidia-smi. In general the
creation of these devices is cosmetic as a container does not have the required cgroup
access for the devices.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2025-06-03 16:03:56 +02:00
..
disable-device-node-modification_test.go Add a hook to disable device node creation in a container 2025-06-03 16:03:56 +02:00
disable-device-node-modification.go Add a hook to disable device node creation in a container 2025-06-03 16:03:56 +02:00
mount_linux.go Add a hook to disable device node creation in a container 2025-06-03 16:03:56 +02:00
mount_other.go Add a hook to disable device node creation in a container 2025-06-03 16:03:56 +02:00