gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/boot/portforward/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 = "portforward", 10 srcs = [ 11 "portforward.go", 12 "portforward_fd_rw.go", 13 "portforward_hostinet.go", 14 "portforward_netstack.go", 15 "portforward_test_util.go", 16 ], 17 visibility = [ 18 "//runsc:__subpackages__", 19 ], 20 deps = [ 21 "//pkg/cleanup", 22 "//pkg/context", 23 "//pkg/errors/linuxerr", 24 "//pkg/fd", 25 "//pkg/fdnotifier", 26 "//pkg/sentry/vfs", 27 "//pkg/tcpip", 28 "//pkg/tcpip/network/ipv4", 29 "//pkg/tcpip/stack", 30 "//pkg/tcpip/transport/tcp", 31 "//pkg/usermem", 32 "//pkg/waiter", 33 "@org_golang_x_sys//unix:go_default_library", 34 ], 35 ) 36 37 go_test( 38 name = "portforward_test", 39 srcs = [ 40 "portforward_fd_rw_test.go", 41 "portforward_hostinet_test.go", 42 "portforward_netstack_test.go", 43 ], 44 library = ":portforward", 45 tags = [ 46 "requires-net:ipv4", 47 "requires-net:loopback", 48 ], 49 deps = [ 50 "//pkg/abi/linux", 51 "//pkg/context", 52 "//pkg/errors/linuxerr", 53 "//pkg/sentry/contexttest", 54 "//pkg/sentry/vfs", 55 "//pkg/tcpip", 56 "//pkg/usermem", 57 "//pkg/waiter", 58 "@org_golang_x_sync//errgroup:go_default_library", 59 ], 60 )