github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/fsimpl/host/BUILD (about) 1 load("//tools:defs.bzl", "go_library") 2 load("//tools/go_generics:defs.bzl", "go_template_instance") 3 4 licenses(["notice"]) 5 6 go_template_instance( 7 name = "inode_refs", 8 out = "inode_refs.go", 9 package = "host", 10 prefix = "inode", 11 template = "//pkg/refsvfs2:refs_template", 12 types = { 13 "T": "inode", 14 }, 15 ) 16 17 go_template_instance( 18 name = "connected_endpoint_refs", 19 out = "connected_endpoint_refs.go", 20 package = "host", 21 prefix = "ConnectedEndpoint", 22 template = "//pkg/refsvfs2:refs_template", 23 types = { 24 "T": "ConnectedEndpoint", 25 }, 26 ) 27 28 go_library( 29 name = "host", 30 srcs = [ 31 "connected_endpoint_refs.go", 32 "control.go", 33 "host.go", 34 "inode_refs.go", 35 "ioctl_unsafe.go", 36 "save_restore.go", 37 "socket.go", 38 "socket_iovec.go", 39 "socket_unsafe.go", 40 "tty.go", 41 "util.go", 42 "util_unsafe.go", 43 ], 44 visibility = ["//pkg/sentry:internal"], 45 deps = [ 46 "//pkg/abi/linux", 47 "//pkg/context", 48 "//pkg/errors/linuxerr", 49 "//pkg/fdnotifier", 50 "//pkg/fspath", 51 "//pkg/hostarch", 52 "//pkg/log", 53 "//pkg/marshal/primitive", 54 "//pkg/refs", 55 "//pkg/refsvfs2", 56 "//pkg/safemem", 57 "//pkg/sentry/arch", 58 "//pkg/sentry/fs/fsutil", 59 "//pkg/sentry/fs/lock", 60 "//pkg/sentry/fsimpl/kernfs", 61 "//pkg/sentry/hostfd", 62 "//pkg/sentry/kernel", 63 "//pkg/sentry/kernel/auth", 64 "//pkg/sentry/memmap", 65 "//pkg/sentry/socket/control", 66 "//pkg/sentry/socket/unix", 67 "//pkg/sentry/socket/unix/transport", 68 "//pkg/sentry/unimpl", 69 "//pkg/sentry/uniqueid", 70 "//pkg/sentry/vfs", 71 "//pkg/sync", 72 "//pkg/syserr", 73 "//pkg/syserror", 74 "//pkg/tcpip", 75 "//pkg/unet", 76 "//pkg/usermem", 77 "//pkg/waiter", 78 "@org_golang_x_sys//unix:go_default_library", 79 ], 80 )