diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-09-17 19:08:05 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-17 19:08:05 +0000 |
commit | 5ecebda34332d0368794efe3f4e30e4fbbe523a0 (patch) | |
tree | fac9be03c9f4156ca12fea4ab14aaff8f888bc0d /runsc/fsgofer | |
parent | c346af254716333f3a5820a720a195c770ae2204 (diff) |
Merge release-20200907.0-123-gf0b1bd434 (automated)
Diffstat (limited to 'runsc/fsgofer')
-rw-r--r-- | runsc/fsgofer/fsgofer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runsc/fsgofer/fsgofer.go b/runsc/fsgofer/fsgofer.go index 0b628c8ce..4268d97a1 100644 --- a/runsc/fsgofer/fsgofer.go +++ b/runsc/fsgofer/fsgofer.go @@ -1181,6 +1181,9 @@ func extractErrno(err error) unix.Errno { func (l *localFile) checkROMount() error { if conf := l.attachPoint.conf; conf.ROMount { + if conf.PanicOnWrite { + panic("attempt to write to RO mount") + } return unix.EROFS } return nil |