Skip to content

Commit f08cdae

Browse files
committed
Skip searching /dev/.udev for device nodes.
Closes: opencontainers#2093 Signed-off-by: Erik Sipsma <sipsma@amazon.com>
1 parent 80d35c7 commit f08cdae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcontainer/devices/devices.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ func getDevices(path string) ([]*configs.Device, error) {
7575
case f.IsDir():
7676
switch f.Name() {
7777
// ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825
78-
case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts":
78+
// ".udev" added to address https://github.com/opencontainers/runc/issues/2093
79+
case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts", ".udev":
7980
continue
8081
default:
8182
sub, err := getDevices(filepath.Join(path, f.Name()))

0 commit comments

Comments
 (0)