Do not create /dev/fuse by default
This device is not required by the OCI spec. The rationale for this was linked to docker/docker#2393 So a non functional /dev/fuse was created, and actual fuse use still is required to add the device explicitly. However even old versions of the JVM on Ubuntu 12.04 no longer require the fuse package, and this is all not needed. See also https://github.com/opencontainers/runc/pull/983 although this change alone stops the fuse device being created. Tested and does not change actual ability to use fuse. Signed-off-by: Justin Cormack <justin.cormack@docker.com> Upstream-commit: 39ecc08f327451e4fc30f15a6fb3bd4c979acc73 Component: engine
This commit is contained in:
@ -61,7 +61,6 @@ func (s *DockerSuite) TestDiffEnsureDefaultDevs(c *check.C) {
|
||||
"A /dev/mqueue": true,
|
||||
"A /dev/kmsg": true,
|
||||
"A /dev/fd": true,
|
||||
"A /dev/fuse": true,
|
||||
"A /dev/ptmx": true,
|
||||
"A /dev/null": true,
|
||||
"A /dev/random": true,
|
||||
|
||||
@ -104,17 +104,7 @@ func DefaultSpec() specs.Spec {
|
||||
// null, zero, full, random, urandom, tty, console, and ptmx.
|
||||
// ptmx is a bind-mount or symlink of the container's ptmx.
|
||||
// See also: https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#default-devices
|
||||
Devices: []specs.Device{
|
||||
{
|
||||
Type: "c",
|
||||
Path: "/dev/fuse",
|
||||
Major: 10,
|
||||
Minor: 229,
|
||||
FileMode: fmPtr(0666),
|
||||
UID: u32Ptr(0),
|
||||
GID: u32Ptr(0),
|
||||
},
|
||||
},
|
||||
Devices: []specs.Device{},
|
||||
Resources: &specs.Resources{
|
||||
Devices: []specs.DeviceCgroup{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user