gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/sandbox/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "sandbox", 10 srcs = [ 11 "memory.go", 12 "network.go", 13 "network_unsafe.go", 14 "sandbox.go", 15 "xdp.go", 16 ], 17 visibility = [ 18 "//runsc:__subpackages__", 19 "//test:__subpackages__", 20 ], 21 deps = [ 22 "//pkg/abi/linux", 23 "//pkg/atomicbitops", 24 "//pkg/cleanup", 25 "//pkg/control/client", 26 "//pkg/control/server", 27 "//pkg/coverage", 28 "//pkg/fd", 29 "//pkg/log", 30 "//pkg/metric:metric_go_proto", 31 "//pkg/prometheus", 32 "//pkg/sentry/control", 33 "//pkg/sentry/devices/nvproxy", 34 "//pkg/sentry/fsimpl/erofs", 35 "//pkg/sentry/pgalloc", 36 "//pkg/sentry/platform", 37 "//pkg/sentry/seccheck", 38 "//pkg/state/statefile", 39 "//pkg/sync", 40 "//pkg/tcpip/header", 41 "//pkg/tcpip/stack", 42 "//pkg/urpc", 43 "//pkg/xdp", 44 "//runsc/boot", 45 "//runsc/boot/procfs", 46 "//runsc/cgroup", 47 "//runsc/config", 48 "//runsc/console", 49 "//runsc/donation", 50 "//runsc/sandbox/bpf", 51 "//runsc/specutils", 52 "//tools/xdp/cmd", 53 "@com_github_cenkalti_backoff//:go_default_library", 54 "@com_github_cilium_ebpf//:go_default_library", 55 "@com_github_cilium_ebpf//link:go_default_library", 56 "@com_github_opencontainers_runtime_spec//specs-go:go_default_library", 57 "@com_github_syndtr_gocapability//capability:go_default_library", 58 "@com_github_vishvananda_netlink//:go_default_library", 59 "@org_golang_x_sys//unix:go_default_library", 60 ], 61 ) 62 63 go_test( 64 name = "sandbox_test", 65 size = "small", 66 srcs = ["memory_test.go"], 67 library = ":sandbox", 68 )