github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/socket/unix/BUILD (about) 1 load("//tools:defs.bzl", "go_library") 2 load("//tools/go_generics:defs.bzl", "go_template_instance") 3 4 package(licenses = ["notice"]) 5 6 go_template_instance( 7 name = "socket_refs", 8 out = "socket_refs.go", 9 package = "unix", 10 prefix = "socketOperations", 11 template = "//pkg/refsvfs2:refs_template", 12 types = { 13 "T": "SocketOperations", 14 }, 15 ) 16 17 go_template_instance( 18 name = "socket_vfs2_refs", 19 out = "socket_vfs2_refs.go", 20 package = "unix", 21 prefix = "socketVFS2", 22 template = "//pkg/refsvfs2:refs_template", 23 types = { 24 "T": "SocketVFS2", 25 }, 26 ) 27 28 go_library( 29 name = "unix", 30 srcs = [ 31 "device.go", 32 "io.go", 33 "socket_refs.go", 34 "socket_vfs2_refs.go", 35 "unix.go", 36 "unix_vfs2.go", 37 ], 38 visibility = ["//pkg/sentry:internal"], 39 deps = [ 40 "//pkg/abi/linux", 41 "//pkg/context", 42 "//pkg/errors/linuxerr", 43 "//pkg/fspath", 44 "//pkg/hostarch", 45 "//pkg/log", 46 "//pkg/marshal", 47 "//pkg/refs", 48 "//pkg/refsvfs2", 49 "//pkg/safemem", 50 "//pkg/sentry/arch", 51 "//pkg/sentry/device", 52 "//pkg/sentry/fs", 53 "//pkg/sentry/fs/fsutil", 54 "//pkg/sentry/fs/lock", 55 "//pkg/sentry/fsimpl/sockfs", 56 "//pkg/sentry/inet", 57 "//pkg/sentry/kernel", 58 "//pkg/sentry/kernel/time", 59 "//pkg/sentry/socket", 60 "//pkg/sentry/socket/control", 61 "//pkg/sentry/socket/netstack", 62 "//pkg/sentry/socket/unix/transport", 63 "//pkg/sentry/vfs", 64 "//pkg/syserr", 65 "//pkg/syserror", 66 "//pkg/tcpip", 67 "//pkg/usermem", 68 "//pkg/waiter", 69 "@org_golang_x_sys//unix:go_default_library", 70 ], 71 )