summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-03-20 10:35:13 -0700
committerShentubot <shentubot@google.com>2019-03-20 10:36:20 -0700
commitc7877b0a14778af9165eb2b841513b6f7dfdcbee (patch)
treee201c8fc9f1933adcbdd905a44c7ad662bda5357
parent9f4e1cb7970d723cbc191c6ea304cb994d6d394d (diff)
Fail in case mount option is unknown
PiperOrigin-RevId: 239425816 Change-Id: I3b1479c61b4222c3931a416c4efc909157044330
-rw-r--r--runsc/specutils/fs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/runsc/specutils/fs.go b/runsc/specutils/fs.go
index b812a5fbd..aa17d4eb9 100644
--- a/runsc/specutils/fs.go
+++ b/runsc/specutils/fs.go
@@ -20,7 +20,6 @@ import (
"syscall"
specs "github.com/opencontainers/runtime-spec/specs-go"
- "gvisor.googlesource.com/gvisor/pkg/log"
)
type mapping struct {
@@ -121,7 +120,7 @@ func validateMount(mnt *specs.Mount) error {
_, ok1 := optionsMap[o]
_, ok2 := propOptionsMap[o]
if !ok1 && !ok2 {
- log.Warningf("Ignoring unknown mount option %q", o)
+ return fmt.Errorf("unknown mount option %q", o)
}
}
}