diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-04 16:33:11 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-04 16:33:11 +0000 |
commit | 9bd06563049671dbc979ce25ca931a1dfd906570 (patch) | |
tree | b14ce7dc65612927789fd2123b0036f053324a26 /pkg/sentry/fs/gofer/session_state.go | |
parent | 37bac1411e4b92af438448bf0bdeaed55bd1d1e1 (diff) | |
parent | d7cd484091543827678f1548b8e5668a7a86e13f (diff) |
Merge release-20200127.0-58-gd7cd484 (automated)
Diffstat (limited to 'pkg/sentry/fs/gofer/session_state.go')
-rw-r--r-- | pkg/sentry/fs/gofer/session_state.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/sentry/fs/gofer/session_state.go b/pkg/sentry/fs/gofer/session_state.go index 0285c5361..111da59f9 100644 --- a/pkg/sentry/fs/gofer/session_state.go +++ b/pkg/sentry/fs/gofer/session_state.go @@ -25,9 +25,9 @@ import ( // beforeSave is invoked by stateify. func (s *session) beforeSave() { - if s.endpoints != nil { + if s.overrides != nil { if err := s.fillPathMap(); err != nil { - panic("failed to save paths to endpoint map before saving" + err.Error()) + panic("failed to save paths to override map before saving" + err.Error()) } } } @@ -74,10 +74,10 @@ func (s *session) afterLoad() { panic(fmt.Sprintf("new attach name %v, want %v", opts.aname, s.aname)) } - // Check if endpointMaps exist when uds sockets are enabled - // (only pathmap will actualy have been saved). - if opts.privateunixsocket != (s.endpoints != nil) { - panic(fmt.Sprintf("new privateunixsocket option %v, want %v", opts.privateunixsocket, s.endpoints != nil)) + // Check if overrideMaps exist when uds sockets are enabled (only pathmaps + // will actually have been saved). + if opts.privateunixsocket != (s.overrides != nil) { + panic(fmt.Sprintf("new privateunixsocket option %v, want %v", opts.privateunixsocket, s.overrides != nil)) } if args.Flags != s.superBlockFlags { panic(fmt.Sprintf("new mount flags %v, want %v", args.Flags, s.superBlockFlags)) |