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

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(licenses = ["notice"])
     4  
     5  go_library(
     6      name = "netlink",
     7      srcs = [
     8          "message.go",
     9          "provider.go",
    10          "provider_vfs2.go",
    11          "socket.go",
    12          "socket_vfs2.go",
    13      ],
    14      visibility = ["//pkg/sentry:internal"],
    15      deps = [
    16          "//pkg/abi/linux",
    17          "//pkg/abi/linux/errno",
    18          "//pkg/bits",
    19          "//pkg/context",
    20          "//pkg/errors/linuxerr",
    21          "//pkg/hostarch",
    22          "//pkg/marshal",
    23          "//pkg/marshal/primitive",
    24          "//pkg/sentry/arch",
    25          "//pkg/sentry/device",
    26          "//pkg/sentry/fs",
    27          "//pkg/sentry/fs/fsutil",
    28          "//pkg/sentry/fsimpl/sockfs",
    29          "//pkg/sentry/kernel",
    30          "//pkg/sentry/kernel/auth",
    31          "//pkg/sentry/kernel/time",
    32          "//pkg/sentry/socket",
    33          "//pkg/sentry/socket/netlink/port",
    34          "//pkg/sentry/socket/unix",
    35          "//pkg/sentry/socket/unix/transport",
    36          "//pkg/sentry/vfs",
    37          "//pkg/sync",
    38          "//pkg/syserr",
    39          "//pkg/syserror",
    40          "//pkg/tcpip",
    41          "//pkg/usermem",
    42          "//pkg/waiter",
    43      ],
    44  )
    45  
    46  go_test(
    47      name = "netlink_test",
    48      size = "small",
    49      srcs = [
    50          "message_test.go",
    51      ],
    52      deps = [
    53          ":netlink",
    54          "//pkg/abi/linux",
    55          "//pkg/marshal",
    56          "//pkg/marshal/primitive",
    57      ],
    58  )