diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-11-01 17:51:22 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-11-01 17:52:11 -0700 |
commit | 5cd55cd90fd5a32685807a57617cde6f5f76d22b (patch) | |
tree | 626eaac23c76d63ef1917bb7e3e51fb618d20f7e /runsc/container | |
parent | b6b81fd04ba93db3268ff649c9d23a25c9b89db5 (diff) |
Use spec with clean paths for gofer
Otherwise the gofer's attach point may be different from sandbox when there
symlinks in the path.
PiperOrigin-RevId: 219730492
Change-Id: Ia9c4c2d16228c6a1a9e790e0cb673fd881003fe1
Diffstat (limited to 'runsc/container')
-rw-r--r-- | runsc/container/container.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runsc/container/container.go b/runsc/container/container.go index 9da25a863..4c542ccb9 100644 --- a/runsc/container/container.go +++ b/runsc/container/container.go @@ -374,6 +374,9 @@ func (c *Container) Start(conf *boot.Config) error { return fmt.Errorf("setup mounts: %v", err) } c.Spec.Mounts = cleanMounts + if err := specutils.WriteCleanSpec(c.BundleDir, c.Spec); err != nil { + return fmt.Errorf("writing clean spec: %v", err) + } // Create the gofer process. ioFiles, err := c.createGoferProcess(c.Spec, conf, c.BundleDir) |