diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-05-28 12:24:37 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-28 12:25:57 -0700 |
commit | a8c1b326600983abeabd41cbfa0c32ff84cf475a (patch) | |
tree | 237cc20f1a442177e398864f7d79e7c9ff5f03ee /runsc/specutils | |
parent | 2fe14b484a662cdc8eec8d6dd5bd5fe6492ba630 (diff) |
Automated rollback of changelist 309082540
PiperOrigin-RevId: 313636920
Diffstat (limited to 'runsc/specutils')
-rw-r--r-- | runsc/specutils/specutils.go | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/runsc/specutils/specutils.go b/runsc/specutils/specutils.go index 202518b58..837d5e238 100644 --- a/runsc/specutils/specutils.go +++ b/runsc/specutils/specutils.go @@ -311,19 +311,7 @@ func capsFromNames(names []string, skipSet map[linux.Capability]struct{}) (auth. // Is9PMount returns true if the given mount can be mounted as an external gofer. func Is9PMount(m specs.Mount) bool { - var isBind bool - switch m.Type { - case "bind": - isBind = true - default: - for _, opt := range m.Options { - if opt == "bind" || opt == "rbind" { - isBind = true - break - } - } - } - return isBind && m.Source != "" && IsSupportedDevMount(m) + return m.Type == "bind" && m.Source != "" && IsSupportedDevMount(m) } // IsSupportedDevMount returns true if the mount is a supported /dev mount. |