gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/boot/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 = "boot",
    10      srcs = [
    11          "autosave.go",
    12          "compat.go",
    13          "compat_amd64.go",
    14          "compat_arm64.go",
    15          "controller.go",
    16          "debug.go",
    17          "events.go",
    18          "gofer_conf.go",
    19          "limits.go",
    20          "loader.go",
    21          "mount_hints.go",
    22          "network.go",
    23          "restore.go",
    24          "seccheck.go",
    25          "strace.go",
    26          "vfs.go",
    27      ],
    28      visibility = [
    29          "//pkg/test:__subpackages__",
    30          "//runsc:__subpackages__",
    31          "//test:__subpackages__",
    32      ],
    33      deps = [
    34          "//pkg/abi",
    35          "//pkg/abi/linux",
    36          "//pkg/abi/nvgpu",
    37          "//pkg/abi/tpu",
    38          "//pkg/bpf",
    39          "//pkg/cleanup",
    40          "//pkg/context",
    41          "//pkg/control/server",
    42          "//pkg/coverage",
    43          "//pkg/cpuid",
    44          "//pkg/devutil",
    45          "//pkg/errors/linuxerr",
    46          "//pkg/eventchannel",
    47          "//pkg/fd",
    48          "//pkg/flipcall",
    49          "//pkg/fspath",
    50          "//pkg/hostos",
    51          "//pkg/log",
    52          "//pkg/memutil",
    53          "//pkg/metric",
    54          "//pkg/rand",
    55          "//pkg/refs",
    56          "//pkg/sentry/arch",
    57          "//pkg/sentry/arch:registers_go_proto",
    58          "//pkg/sentry/control",
    59          "//pkg/sentry/devices/accel",
    60          "//pkg/sentry/devices/memdev",
    61          "//pkg/sentry/devices/nvproxy",
    62          "//pkg/sentry/devices/tpuproxy",
    63          "//pkg/sentry/devices/ttydev",
    64          "//pkg/sentry/devices/tundev",
    65          "//pkg/sentry/fdimport",
    66          "//pkg/sentry/fsimpl/cgroupfs",
    67          "//pkg/sentry/fsimpl/dev",
    68          "//pkg/sentry/fsimpl/devpts",
    69          "//pkg/sentry/fsimpl/devtmpfs",
    70          "//pkg/sentry/fsimpl/erofs",
    71          "//pkg/sentry/fsimpl/fuse",
    72          "//pkg/sentry/fsimpl/gofer",
    73          "//pkg/sentry/fsimpl/host",
    74          "//pkg/sentry/fsimpl/mqfs",
    75          "//pkg/sentry/fsimpl/overlay",
    76          "//pkg/sentry/fsimpl/proc",
    77          "//pkg/sentry/fsimpl/sys",
    78          "//pkg/sentry/fsimpl/tmpfs",
    79          "//pkg/sentry/fsimpl/user",
    80          "//pkg/sentry/inet",
    81          "//pkg/sentry/kernel",
    82          "//pkg/sentry/kernel/auth",
    83          "//pkg/sentry/limits",
    84          "//pkg/sentry/loader",
    85          "//pkg/sentry/pgalloc",
    86          "//pkg/sentry/platform",
    87          "//pkg/sentry/seccheck",
    88          "//pkg/sentry/seccheck/points:points_go_proto",
    89          "//pkg/sentry/seccheck/sinks/null",
    90          "//pkg/sentry/seccheck/sinks/remote",
    91          "//pkg/sentry/socket/hostinet",
    92          "//pkg/sentry/socket/netfilter",
    93          "//pkg/sentry/socket/netlink",
    94          "//pkg/sentry/socket/netlink/route",
    95          "//pkg/sentry/socket/netlink/uevent",
    96          "//pkg/sentry/socket/netstack",
    97          "//pkg/sentry/socket/unix",
    98          "//pkg/sentry/state",
    99          "//pkg/sentry/strace",
   100          "//pkg/sentry/time",
   101          "//pkg/sentry/unimpl:unimplemented_syscall_go_proto",
   102          "//pkg/sentry/usage",
   103          "//pkg/sentry/vfs",
   104          "//pkg/sentry/watchdog",
   105          "//pkg/sighandling",
   106          "//pkg/state/statefile",
   107          "//pkg/sync",
   108          "//pkg/tcpip",
   109          "//pkg/tcpip/link/ethernet",
   110          "//pkg/tcpip/link/fdbased",
   111          "//pkg/tcpip/link/loopback",
   112          "//pkg/tcpip/link/qdisc/fifo",
   113          "//pkg/tcpip/link/sniffer",
   114          "//pkg/tcpip/link/xdp",
   115          "//pkg/tcpip/network/arp",
   116          "//pkg/tcpip/network/ipv4",
   117          "//pkg/tcpip/network/ipv6",
   118          "//pkg/tcpip/stack",
   119          "//pkg/tcpip/transport/icmp",
   120          "//pkg/tcpip/transport/raw",
   121          "//pkg/tcpip/transport/tcp",
   122          "//pkg/tcpip/transport/udp",
   123          "//pkg/urpc",
   124          "//runsc/boot/filter",
   125          "//runsc/boot/platforms",
   126          "//runsc/boot/portforward",
   127          "//runsc/boot/pprof",
   128          "//runsc/boot/procfs",
   129          "//runsc/config",
   130          "//runsc/profile",
   131          "//runsc/specutils",
   132          "//runsc/specutils/seccomp",
   133          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
   134          "@com_github_syndtr_gocapability//capability:go_default_library",
   135          "@org_golang_google_protobuf//proto:go_default_library",
   136          "@org_golang_x_sys//unix:go_default_library",
   137      ],
   138  )
   139  
   140  go_test(
   141      name = "boot_test",
   142      size = "small",
   143      srcs = [
   144          "compat_test.go",
   145          "gofer_conf_test.go",
   146          "loader_test.go",
   147          "mount_hints_test.go",
   148          "vfs_test.go",
   149      ],
   150      library = ":boot",
   151      deps = [
   152          "//pkg/control/server",
   153          "//pkg/cpuid",
   154          "//pkg/fspath",
   155          "//pkg/log",
   156          "//pkg/sentry/fsimpl/erofs",
   157          "//pkg/sentry/kernel/auth",
   158          "//pkg/sentry/seccheck",
   159          "//pkg/sentry/vfs",
   160          "//pkg/sync",
   161          "//pkg/unet",
   162          "//runsc/config",
   163          "//runsc/flag",
   164          "//runsc/fsgofer",
   165          "@com_github_opencontainers_runtime_spec//specs-go:go_default_library",
   166          "@com_github_syndtr_gocapability//capability:go_default_library",
   167          "@org_golang_x_sys//unix:go_default_library",
   168      ],
   169  )