From dfdbdf14fa101e850bb3361f91da6362b98d11d0 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Thu, 17 Oct 2019 13:08:27 -0700 Subject: Refactor pipe to support VFS2. * Pulls common functionality (IO and locking on open) into pipe_util.go. * Adds pipe/vfs.go, which implements a subset of vfs.FileDescriptionImpl. A subsequent change will add support for pipes in memfs. PiperOrigin-RevId: 275322385 --- pkg/sentry/kernel/pipe/BUILD | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/sentry/kernel/pipe/BUILD') diff --git a/pkg/sentry/kernel/pipe/BUILD b/pkg/sentry/kernel/pipe/BUILD index cde647139..9d34f6d4d 100644 --- a/pkg/sentry/kernel/pipe/BUILD +++ b/pkg/sentry/kernel/pipe/BUILD @@ -24,8 +24,10 @@ go_library( "device.go", "node.go", "pipe.go", + "pipe_util.go", "reader.go", "reader_writer.go", + "vfs.go", "writer.go", ], importpath = "gvisor.dev/gvisor/pkg/sentry/kernel/pipe", @@ -40,6 +42,7 @@ go_library( "//pkg/sentry/fs/fsutil", "//pkg/sentry/safemem", "//pkg/sentry/usermem", + "//pkg/sentry/vfs", "//pkg/syserror", "//pkg/waiter", ], -- cgit v1.2.3