summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/fds.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-24 17:06:33 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-24 17:06:33 +0000
commit57f05062f655eb7b1d9a43b407b82b97449195ee (patch)
treeda8b811d276923db6548c108d46c7c449d52de5f /runsc/boot/fds.go
parenta4ceffb96b9368657d2bf2ac10cc243de2eb8345 (diff)
parent1b88c63b3e6b330c8399bf92f148cc80374bee18 (diff)
Merge release-20200323.0-234-g1b88c63 (automated)
Diffstat (limited to 'runsc/boot/fds.go')
-rw-r--r--runsc/boot/fds.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/runsc/boot/fds.go b/runsc/boot/fds.go
index 7e49f6f9f..0cbd63857 100644
--- a/runsc/boot/fds.go
+++ b/runsc/boot/fds.go
@@ -89,14 +89,9 @@ func createFDTableVFS2(ctx context.Context, console bool, stdioFDs []int) (*kern
fdTable := k.NewFDTable()
defer fdTable.DecRef()
- hostMount, err := vfshost.NewMount(k.VFS())
- if err != nil {
- return nil, fmt.Errorf("creating host mount: %w", err)
- }
-
for appFD, hostFD := range stdioFDs {
// TODO(gvisor.dev/issue/1482): Add TTY support.
- appFile, err := vfshost.ImportFD(hostMount, hostFD, false)
+ appFile, err := vfshost.ImportFD(k.HostMount(), hostFD, false)
if err != nil {
return nil, err
}