From f08cdaeec98a2a28aaa2ea14d630fb0b618ee216 Mon Sep 17 00:00:00 2001 From: Erik Sipsma Date: Wed, 31 Jul 2019 19:41:33 +0000 Subject: [PATCH] Skip searching /dev/.udev for device nodes. Closes: #2093 Signed-off-by: Erik Sipsma --- libcontainer/devices/devices.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcontainer/devices/devices.go b/libcontainer/devices/devices.go index 5e2ab0581e2..6d9a2def968 100644 --- a/libcontainer/devices/devices.go +++ b/libcontainer/devices/devices.go @@ -75,7 +75,8 @@ func getDevices(path string) ([]*configs.Device, error) { case f.IsDir(): switch f.Name() { // ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825 - case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts": + // ".udev" added to address https://github.com/opencontainers/runc/issues/2093 + case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts", ".udev": continue default: sub, err := getDevices(filepath.Join(path, f.Name()))