diff options
author | Zhaozhong Ni <nzz@google.com> | 2018-12-07 17:03:06 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-12-07 17:03:54 -0800 |
commit | 9984138abee51d6145469f9298bfeb8a98589709 (patch) | |
tree | 3b9ce1ec0a6c76d453c2e910709fb7530fff6b5e /runsc/boot/controller.go | |
parent | 42e2e5cae9b035a62bdbf492ad4a1e9d016c5830 (diff) |
sentry: turn "dynamically-created" procfs files into static creation.
PiperOrigin-RevId: 224600982
Change-Id: I547253528e24fb0bb318fc9d2632cb80504acb34
Diffstat (limited to 'runsc/boot/controller.go')
-rw-r--r-- | runsc/boot/controller.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runsc/boot/controller.go b/runsc/boot/controller.go index 7a1f42119..05d4f3a5b 100644 --- a/runsc/boot/controller.go +++ b/runsc/boot/controller.go @@ -30,6 +30,7 @@ import ( "gvisor.googlesource.com/gvisor/pkg/sentry/state" "gvisor.googlesource.com/gvisor/pkg/sentry/time" "gvisor.googlesource.com/gvisor/pkg/sentry/watchdog" + "gvisor.googlesource.com/gvisor/pkg/tcpip/stack" "gvisor.googlesource.com/gvisor/pkg/urpc" ) @@ -356,6 +357,9 @@ func (cm *containerManager) Restore(o *RestoreOpts, _ *struct{}) error { if err != nil { return fmt.Errorf("failed to create network: %v", err) } + if eps, ok := networkStack.(*epsocket.Stack); ok { + stack.StackFromEnv = eps.Stack // FIXME + } info, err := o.FilePayload.Files[0].Stat() if err != nil { return err |