summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/memfs/BUILD
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2019-10-19 11:48:09 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-19 11:49:38 -0700
commit652f7b1d0fef6f522baaed091d4820a48014092c (patch)
tree232c464eb49748ab5a57ad18f6912280a9f82dfe /pkg/sentry/fsimpl/memfs/BUILD
parent74044f2cca498ed3144baccc5d3b7af534829966 (diff)
Add support for pipes in VFS2.
PiperOrigin-RevId: 275650307
Diffstat (limited to 'pkg/sentry/fsimpl/memfs/BUILD')
-rw-r--r--pkg/sentry/fsimpl/memfs/BUILD20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/memfs/BUILD b/pkg/sentry/fsimpl/memfs/BUILD
index 7e364c5fd..04d667273 100644
--- a/pkg/sentry/fsimpl/memfs/BUILD
+++ b/pkg/sentry/fsimpl/memfs/BUILD
@@ -24,14 +24,18 @@ go_library(
"directory.go",
"filesystem.go",
"memfs.go",
+ "named_pipe.go",
"regular_file.go",
"symlink.go",
],
importpath = "gvisor.dev/gvisor/pkg/sentry/fsimpl/memfs",
deps = [
"//pkg/abi/linux",
+ "//pkg/amutex",
+ "//pkg/sentry/arch",
"//pkg/sentry/context",
"//pkg/sentry/kernel/auth",
+ "//pkg/sentry/kernel/pipe",
"//pkg/sentry/usermem",
"//pkg/sentry/vfs",
"//pkg/syserror",
@@ -54,3 +58,19 @@ go_test(
"//pkg/syserror",
],
)
+
+go_test(
+ name = "memfs_test",
+ size = "small",
+ srcs = ["pipe_test.go"],
+ embed = [":memfs"],
+ deps = [
+ "//pkg/abi/linux",
+ "//pkg/sentry/context",
+ "//pkg/sentry/context/contexttest",
+ "//pkg/sentry/kernel/auth",
+ "//pkg/sentry/usermem",
+ "//pkg/sentry/vfs",
+ "//pkg/syserror",
+ ],
+)