summaryrefslogtreecommitdiffhomepage
path: root/runsc/fsgofer/fsgofer.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-09-17 11:55:54 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-17 12:01:45 -0700
commitda07e38f7c986dca568466beea8a0b7db60f09db (patch)
treed1d297c3cfa8bc266d654405f260f7fcc78a5320 /runsc/fsgofer/fsgofer.go
parentf0b1bd434eb00a0f13cbbc141078a95ba0bc15a4 (diff)
Remove option to panic gofer
Gofer panics are suppressed by p9 server and an error is returned to the caller, making it effectively the same as returning EROFS. PiperOrigin-RevId: 332282959
Diffstat (limited to 'runsc/fsgofer/fsgofer.go')
-rw-r--r--runsc/fsgofer/fsgofer.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/runsc/fsgofer/fsgofer.go b/runsc/fsgofer/fsgofer.go
index 4268d97a1..0b628c8ce 100644
--- a/runsc/fsgofer/fsgofer.go
+++ b/runsc/fsgofer/fsgofer.go
@@ -1181,9 +1181,6 @@ 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