nvidia-container-toolkit/cmd/nvidia-cdi-hook/disable-device-node-modification
Evan Lezar 49aa5d764b
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-04-03 15:48:29 +02:00
..
disable-device-node-modification_test.go Add a hook to disable device node creation in a container 2025-04-03 15:48:29 +02:00
disable-device-node-modification.go Add a hook to disable device node creation in a container 2025-04-03 15:48:29 +02:00
mount_linux.go Add a hook to disable device node creation in a container 2025-04-03 15:48:29 +02:00
mount_other.go Add a hook to disable device node creation in a container 2025-04-03 15:48:29 +02:00