From 3d32a05a35bde4cfed861c274c32bfc55acc19c9 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Fri, 2 Jul 2021 18:13:24 -0700 Subject: runsc: validate mount targets PiperOrigin-RevId: 382845950 --- runsc/specutils/safemount_test/BUILD | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 runsc/specutils/safemount_test/BUILD (limited to 'runsc/specutils/safemount_test/BUILD') 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", + ], +) -- cgit v1.2.3