github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/socket/control/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "control",
     7      srcs = [
     8          "control.go",
     9          "control_vfs2.go",
    10      ],
    11      imports = [
    12          "gvisor.dev/gvisor/pkg/sentry/fs",
    13      ],
    14      visibility = ["//pkg/sentry:internal"],
    15      deps = [
    16          "//pkg/abi/linux",
    17          "//pkg/bits",
    18          "//pkg/context",
    19          "//pkg/errors/linuxerr",
    20          "//pkg/hostarch",
    21          "//pkg/marshal",
    22          "//pkg/marshal/primitive",
    23          "//pkg/sentry/fs",
    24          "//pkg/sentry/kernel",
    25          "//pkg/sentry/kernel/auth",
    26          "//pkg/sentry/socket",
    27          "//pkg/sentry/socket/unix/transport",
    28          "//pkg/sentry/vfs",
    29      ],
    30  )
    31  
    32  go_test(
    33      name = "control_test",
    34      size = "small",
    35      srcs = ["control_test.go"],
    36      library = ":control",
    37      deps = [
    38          "//pkg/abi/linux",
    39          "//pkg/binary",
    40          "//pkg/hostarch",
    41          "//pkg/sentry/socket",
    42          "@com_github_google_go_cmp//cmp:go_default_library",
    43      ],
    44  )