load("//tools:defs.bzl", "go_library", "go_test") package(licenses = ["notice"]) go_library( name = "host", srcs = [ "control.go", "descriptor.go", "descriptor_state.go", "device.go", "file.go", "host.go", "inode.go", "inode_state.go", "ioctl_unsafe.go", "socket.go", "socket_iovec.go", "socket_state.go", "socket_unsafe.go", "tty.go", "util.go", "util_amd64_unsafe.go", "util_arm64_unsafe.go", "util_unsafe.go", ], visibility = ["//pkg/sentry:internal"], deps = [ "//pkg/abi/linux", "//pkg/context", "//pkg/errors/linuxerr", "//pkg/fd", "//pkg/fdnotifier", "//pkg/log", "//pkg/marshal/primitive", "//pkg/refs", "//pkg/safemem", "//pkg/secio", "//pkg/sentry/arch", "//pkg/sentry/device", "//pkg/sentry/fs", "//pkg/sentry/fs/fsutil", "//pkg/sentry/hostfd", "//pkg/sentry/kernel", "//pkg/sentry/kernel/auth", "//pkg/sentry/kernel/time", "//pkg/sentry/memmap", "//pkg/sentry/socket/control", "//pkg/sentry/socket/unix", "//pkg/sentry/socket/unix/transport", "//pkg/sentry/unimpl", "//pkg/sentry/uniqueid", "//pkg/sync", "//pkg/syserr", "//pkg/tcpip", "//pkg/unet", "//pkg/usermem", "//pkg/waiter", "@org_golang_x_sys//unix:go_default_library", ], ) go_test( name = "host_test", size = "small", srcs = [ "descriptor_test.go", "inode_test.go", "socket_test.go", "wait_test.go", ], library = ":host", deps = [ "//pkg/fd", "//pkg/fdnotifier", "//pkg/sentry/contexttest", "//pkg/sentry/kernel/time", "//pkg/sentry/socket", "//pkg/sentry/socket/unix/transport", "//pkg/tcpip", "//pkg/usermem", "//pkg/waiter", "@org_golang_x_sys//unix:go_default_library", ], )