Skip to content

Commit

Permalink
Merge pull request #2094 from sipsma/2093-nodotudev
Browse files Browse the repository at this point in the history
Skip searching /dev/.udev for device nodes.
  • Loading branch information
Mrunal Patel authored Aug 5, 2019
2 parents 44f9ec1 + f08cdae commit 2e94378
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 2e94378

Please sign in to comment.