Skip to content

Commit

Permalink
Skip searching /dev/.udev for device nodes.
Browse files Browse the repository at this point in the history
Closes: opencontainers#2093

Signed-off-by: Erik Sipsma <sipsma@amazon.com>
  • Loading branch information
sipsma committed Jul 31, 2019
1 parent 80d35c7 commit f08cdae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcontainer/devices/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit f08cdae

Please sign in to comment.