runc/devices
Alejandro Ojeda 863a486d81 devices: filter /dev/console out of the node list
Fixed getDeviceNodes() so it won't add /dev/console to the device node
list.

This fixes an issue where containers wouldn't start if
/dev/console is a pts (which is the case when running docker inside
docker), because devpts inodes are special and cannot be created with
mknod: attempting to open the result of doing so will return EIO.

Since later libcontainer would attempt to open the file to mount --bind
over it and fail because of the EIO error, the container wouldn't start
if the /dev/console was a pts, which is the case inside a docker
that was started from a pts.

getDeviceNodes() already filters pts so this change is consistent
with the current behavior.

Signed-off-by: Alejandro Ojeda <alex@x3y.org>
2014-10-24 03:21:29 +02:00
..
defaults.go Update imports for new docker location 2014-07-24 14:28:49 -07:00
devices.go devices: filter /dev/console out of the node list 2014-10-24 03:21:29 +02:00
devices_test.go Inject errors into ioutil.ReadDir calls from devices.go 2014-09-04 17:00:09 -07:00
number.go Refactor device handling code 2014-05-30 19:21:29 +00:00