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

     1  load("//tools:defs.bzl", "go_library", "proto_library")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      licenses = ["notice"],
     6  )
     7  
     8  go_library(
     9      name = "netstack",
    10      srcs = [
    11          "netstack.go",
    12          "netstack_state.go",
    13          "provider.go",
    14          "save_restore.go",
    15          "stack.go",
    16          "tun.go",
    17      ],
    18      visibility = [
    19          "//pkg/sentry:internal",
    20      ],
    21      deps = [
    22          ":events_go_proto",
    23          "//pkg/abi/linux",
    24          "//pkg/abi/linux/errno",
    25          "//pkg/context",
    26          "//pkg/errors/linuxerr",
    27          "//pkg/eventchannel",
    28          "//pkg/hostarch",
    29          "//pkg/log",
    30          "//pkg/marshal",
    31          "//pkg/marshal/primitive",
    32          "//pkg/metric",
    33          "//pkg/refs",
    34          "//pkg/sentry/arch",
    35          "//pkg/sentry/fsimpl/sockfs",
    36          "//pkg/sentry/inet",
    37          "//pkg/sentry/kernel",
    38          "//pkg/sentry/kernel/auth",
    39          "//pkg/sentry/kernel/time",
    40          "//pkg/sentry/socket",
    41          "//pkg/sentry/socket/netfilter",
    42          "//pkg/sentry/socket/netlink/nlmsg",
    43          "//pkg/sentry/vfs",
    44          "//pkg/sync",
    45          "//pkg/syserr",
    46          "//pkg/tcpip",
    47          "//pkg/tcpip/header",
    48          "//pkg/tcpip/link/tun",
    49          "//pkg/tcpip/network/ipv4",
    50          "//pkg/tcpip/network/ipv6",
    51          "//pkg/tcpip/stack",
    52          "//pkg/tcpip/transport",
    53          "//pkg/tcpip/transport/tcp",
    54          "//pkg/tcpip/transport/udp",
    55          "//pkg/usermem",
    56          "//pkg/waiter",
    57          "@org_golang_google_protobuf//proto:go_default_library",
    58          "@org_golang_x_sys//unix:go_default_library",
    59      ],
    60  )
    61  
    62  proto_library(
    63      name = "events",
    64      srcs = ["events.proto"],
    65      visibility = ["//visibility:public"],
    66  )