summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/sys/BUILD
diff options
context:
space:
mode:
authorRahat Mahmood <rahat@google.com>2020-01-21 14:25:14 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-21 15:13:26 -0800
commitad1968ed5665c7541d6920edbd7c7492b7db3046 (patch)
treed9269f4fcddadff73097ef64a3734d44abba2724 /pkg/sentry/fsimpl/sys/BUILD
parentdc9989720562e5df0131986eed3e3d681616db57 (diff)
Implement sysfs.
PiperOrigin-RevId: 290822487
Diffstat (limited to 'pkg/sentry/fsimpl/sys/BUILD')
-rw-r--r--pkg/sentry/fsimpl/sys/BUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/sys/BUILD b/pkg/sentry/fsimpl/sys/BUILD
new file mode 100644
index 000000000..ee3c842bd
--- /dev/null
+++ b/pkg/sentry/fsimpl/sys/BUILD
@@ -0,0 +1,35 @@
+load("//tools/go_stateify:defs.bzl", "go_library")
+load("@io_bazel_rules_go//go:def.bzl", "go_test")
+
+package(licenses = ["notice"])
+
+go_library(
+ name = "sys",
+ srcs = [
+ "sys.go",
+ ],
+ importpath = "gvisor.dev/gvisor/pkg/sentry/fsimpl/sys",
+ deps = [
+ "//pkg/abi/linux",
+ "//pkg/sentry/context",
+ "//pkg/sentry/fsimpl/kernfs",
+ "//pkg/sentry/kernel",
+ "//pkg/sentry/kernel/auth",
+ "//pkg/sentry/vfs",
+ "//pkg/syserror",
+ ],
+)
+
+go_test(
+ name = "sys_test",
+ srcs = ["sys_test.go"],
+ deps = [
+ ":sys",
+ "//pkg/abi/linux",
+ "//pkg/sentry/fsimpl/testutil",
+ "//pkg/sentry/kernel",
+ "//pkg/sentry/kernel/auth",
+ "//pkg/sentry/vfs",
+ "@com_github_google_go-cmp//cmp:go_default_library",
+ ],
+)