summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/lock/BUILD
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-01-31 14:14:52 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-31 14:15:41 -0800
commit6c3072243dfbf70062de5f610e14fd6ed2ce5f32 (patch)
tree974fde16889acd3b3ff7236f5e60d9c9463055de /pkg/sentry/vfs/lock/BUILD
parent77bf586db75b3dbd9dcb14c349bde8372d26425c (diff)
Implement file locks for regular tmpfs files in VFSv2.
Add a file lock implementation that can be embedded into various filesystem implementations. Updates #1480 PiperOrigin-RevId: 292614758
Diffstat (limited to 'pkg/sentry/vfs/lock/BUILD')
-rw-r--r--pkg/sentry/vfs/lock/BUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/lock/BUILD b/pkg/sentry/vfs/lock/BUILD
new file mode 100644
index 000000000..d9ab063b7
--- /dev/null
+++ b/pkg/sentry/vfs/lock/BUILD
@@ -0,0 +1,13 @@
+load("//tools:defs.bzl", "go_library")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "lock",
+ srcs = ["lock.go"],
+ visibility = ["//pkg/sentry:internal"],
+ deps = [
+ "//pkg/sentry/fs/lock",
+ "//pkg/syserror",
+ ],
+)