Skip searching /dev/.udev for device nodes.

Closes: #2093

Signed-off-by: Erik Sipsma <sipsma@amazon.com>
This commit is contained in:
Erik Sipsma 2019-07-31 19:41:33 +00:00
parent 80d35c7ce4
commit f08cdaeec9
1 changed files with 2 additions and 1 deletions

View File

@ -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()))