diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-27 17:22:26 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-27 17:22:26 -0700 |
commit | 013d79d8e4e008f113004e766986ac89474b210d (patch) | |
tree | f82a5b95ea2c5ec267a73427a941fab403e59bb7 /runsc/specutils/specutils.go | |
parent | 4d9066d1d763d7a1f3cedb3adcd4c16d12e23092 (diff) | |
parent | 2b72da8bf95e3e1afb361f8984584bcf0524cff3 (diff) |
Merge pull request #4420 from workato:dev-options
PiperOrigin-RevId: 339363816
Diffstat (limited to 'runsc/specutils/specutils.go')
-rw-r--r-- | runsc/specutils/specutils.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index 33fa2ddd9..45abc1425 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -344,15 +344,9 @@ func IsSupportedDevMount(m specs.Mount) bool { var existingDevices = []string{ "/dev/fd", "/dev/stdin", "/dev/stdout", "/dev/stderr", "/dev/null", "/dev/zero", "/dev/full", "/dev/random", - "/dev/urandom", "/dev/shm", "/dev/pts", "/dev/ptmx", + "/dev/urandom", "/dev/shm", "/dev/ptmx", } dst := filepath.Clean(m.Destination) - if dst == "/dev" { - // OCI spec uses many different mounts for the things inside of '/dev'. We - // have a single mount at '/dev' that is always mounted, regardless of - // whether it was asked for, as the spec says we SHOULD. - return false - } for _, dev := range existingDevices { if dst == dev || strings.HasPrefix(dst, dev+"/") { return false |