gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/control/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test", "proto_library") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 proto_library( 9 name = "control", 10 srcs = ["control.proto"], 11 visibility = ["//visibility:public"], 12 deps = [ 13 "@com_google_protobuf//:timestamp_proto", 14 ], 15 ) 16 17 go_library( 18 name = "control", 19 srcs = [ 20 "cgroups.go", 21 "control.go", 22 "events.go", 23 "fs.go", 24 "lifecycle.go", 25 "logging.go", 26 "metrics.go", 27 "pprof.go", 28 "proc.go", 29 "state.go", 30 "usage.go", 31 ], 32 visibility = [ 33 "//:sandbox", 34 ], 35 deps = [ 36 ":control_go_proto", 37 "//pkg/abi/linux", 38 "//pkg/context", 39 "//pkg/eventchannel", 40 "//pkg/fd", 41 "//pkg/fspath", 42 "//pkg/log", 43 "//pkg/metric", 44 "//pkg/metric:metric_go_proto", 45 "//pkg/prometheus", 46 "//pkg/sentry/fdimport", 47 "//pkg/sentry/fsimpl/host", 48 "//pkg/sentry/fsimpl/user", 49 "//pkg/sentry/fsmetric", 50 "//pkg/sentry/kernel", 51 "//pkg/sentry/kernel/auth", 52 "//pkg/sentry/kernel/time", 53 "//pkg/sentry/limits", 54 "//pkg/sentry/pgalloc", 55 "//pkg/sentry/state", 56 "//pkg/sentry/strace", 57 "//pkg/sentry/usage", 58 "//pkg/sentry/vfs", 59 "//pkg/sentry/watchdog", 60 "//pkg/sync", 61 "//pkg/tcpip/link/sniffer", 62 "//pkg/urpc", 63 "//pkg/usermem", 64 "@org_golang_google_protobuf//types/known/timestamppb", 65 "@org_golang_x_sys//unix:go_default_library", 66 ], 67 ) 68 69 go_test( 70 name = "control_test", 71 size = "small", 72 srcs = ["proc_test.go"], 73 library = ":control", 74 deps = [ 75 "//pkg/log", 76 "//pkg/sentry/kernel/time", 77 "//pkg/sentry/usage", 78 ], 79 )