From 5cd55cd90fd5a32685807a57617cde6f5f76d22b Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 1 Nov 2018 17:51:22 -0700 Subject: 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 --- runsc/boot/loader_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'runsc/boot') diff --git a/runsc/boot/loader_test.go b/runsc/boot/loader_test.go index c342ee005..d5cee5608 100644 --- a/runsc/boot/loader_test.go +++ b/runsc/boot/loader_test.go @@ -77,8 +77,11 @@ func startGofer(root string) (int, func(), error) { syscall.Close(goferEnd) return 0, nil, fmt.Errorf("error creating server on FD %d: %v", goferEnd, err) } + at, err := fsgofer.NewAttachPoint(root, fsgofer.Config{ROMount: true}) + if err != nil { + return 0, nil, err + } go func() { - at := fsgofer.NewAttachPoint(root, fsgofer.Config{ROMount: true}) s := p9.NewServer(at) if err := s.Handle(socket); err != nil { log.Infof("Gofer is stopping. FD: %d, err: %v\n", goferEnd, err) -- cgit v1.2.3