mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
On Linux, udev maintains /dev/char/<major>:<minor> and /dev/block/<major>:<minor> symlinks to all device nodes it manages. Applications open devices by device number through these symlinks; e.g. rdma-core uses /dev/char to locate uverbs device nodes from the device numbers advertised in sysfs. There is no udev in the sandbox, so create these symlinks when device files are created in devtmpfs. This covers both sentry-registered devices and devices injected via the OCI runtime spec.