summaryrefslogtreecommitdiffhomepage
path: root/runsc/specutils/safemount_test/BUILD
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2021-07-02 18:13:24 -0700
committergVisor bot <gvisor-bot@google.com>2021-07-02 18:15:59 -0700
commit3d32a05a35bde4cfed861c274c32bfc55acc19c9 (patch)
tree3134be49575f75c8d329e5fe653aceb3d76cf941 /runsc/specutils/safemount_test/BUILD
parentfcf0ff2fc14852614628558626778b60f8de0c26 (diff)
runsc: validate mount targets
PiperOrigin-RevId: 382845950
Diffstat (limited to 'runsc/specutils/safemount_test/BUILD')
-rw-r--r--runsc/specutils/safemount_test/BUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/runsc/specutils/safemount_test/BUILD b/runsc/specutils/safemount_test/BUILD
new file mode 100644
index 000000000..c39c40492
--- /dev/null
+++ b/runsc/specutils/safemount_test/BUILD
@@ -0,0 +1,23 @@
+load("//tools:defs.bzl", "go_binary", "go_test")
+
+package(licenses = ["notice"])
+
+go_test(
+ name = "safemount_test",
+ size = "small",
+ srcs = ["safemount_test.go"],
+ data = [":safemount_runner"],
+ deps = [
+ "//pkg/test/testutil",
+ "@org_golang_x_sys//unix:go_default_library",
+ ],
+)
+
+go_binary(
+ name = "safemount_runner",
+ srcs = ["safemount_runner.go"],
+ deps = [
+ "//runsc/specutils",
+ "@org_golang_x_sys//unix:go_default_library",
+ ],
+)