gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/inet/BUILD (about)

     1  load("//pkg/sync/locking:locking.bzl", "declare_mutex")
     2  load("//tools:defs.bzl", "go_library")
     3  load("//tools/go_generics:defs.bzl", "go_template_instance")
     4  
     5  package(
     6      default_applicable_licenses = ["//:license"],
     7      default_visibility = ["//:sandbox"],
     8      licenses = ["notice"],
     9  )
    10  
    11  go_template_instance(
    12      name = "namespace_refs",
    13      out = "namespace_refs.go",
    14      package = "inet",
    15      prefix = "namespace",
    16      template = "//pkg/refs:refs_template",
    17      types = {
    18          "T": "Namespace",
    19      },
    20  )
    21  
    22  declare_mutex(
    23      name = "abstract_socket_namespace_mutex",
    24      out = "abstract_socket_namespace_mutex.go",
    25      package = "inet",
    26      prefix = "abstractSocketNamespace",
    27  )
    28  
    29  go_library(
    30      name = "inet",
    31      srcs = [
    32          "abstract_socket_namespace.go",
    33          "abstract_socket_namespace_mutex.go",
    34          "context.go",
    35          "inet.go",
    36          "namespace.go",
    37          "namespace_refs.go",
    38          "test_stack.go",
    39      ],
    40      deps = [
    41          "//pkg/abi/linux",
    42          "//pkg/atomicbitops",
    43          "//pkg/context",
    44          "//pkg/refs",
    45          "//pkg/sentry/fsimpl/nsfs",
    46          "//pkg/sentry/kernel/auth",
    47          "//pkg/sentry/socket/netlink/nlmsg",
    48          "//pkg/sentry/socket/unix/transport",
    49          "//pkg/sync",
    50          "//pkg/sync/locking",
    51          "//pkg/syserr",
    52          "//pkg/tcpip",
    53          "//pkg/tcpip/stack",
    54      ],
    55  )