diff options
Diffstat (limited to 'pkg/sentry/control/BUILD')
-rw-r--r-- | pkg/sentry/control/BUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkg/sentry/control/BUILD b/pkg/sentry/control/BUILD new file mode 100644 index 000000000..2c5d14be5 --- /dev/null +++ b/pkg/sentry/control/BUILD @@ -0,0 +1,52 @@ +load("//tools:defs.bzl", "go_library", "go_test") + +package(licenses = ["notice"]) + +go_library( + name = "control", + srcs = [ + "control.go", + "logging.go", + "pprof.go", + "proc.go", + "state.go", + ], + visibility = [ + "//:sandbox", + ], + deps = [ + "//pkg/abi/linux", + "//pkg/fd", + "//pkg/log", + "//pkg/sentry/fdimport", + "//pkg/sentry/fs", + "//pkg/sentry/fs/host", + "//pkg/sentry/fs/user", + "//pkg/sentry/fsimpl/host", + "//pkg/sentry/kernel", + "//pkg/sentry/kernel/auth", + "//pkg/sentry/kernel/time", + "//pkg/sentry/limits", + "//pkg/sentry/state", + "//pkg/sentry/strace", + "//pkg/sentry/usage", + "//pkg/sentry/vfs", + "//pkg/sentry/watchdog", + "//pkg/sync", + "//pkg/tcpip/link/sniffer", + "//pkg/urpc", + "@org_golang_x_sys//unix:go_default_library", + ], +) + +go_test( + name = "control_test", + size = "small", + srcs = ["proc_test.go"], + library = ":control", + deps = [ + "//pkg/log", + "//pkg/sentry/kernel/time", + "//pkg/sentry/usage", + ], +) |