github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/fsimpl/devpts/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 load("//tools/go_generics:defs.bzl", "go_template_instance") 3 4 licenses(["notice"]) 5 6 go_template_instance( 7 name = "root_inode_refs", 8 out = "root_inode_refs.go", 9 package = "devpts", 10 prefix = "rootInode", 11 template = "//pkg/refsvfs2:refs_template", 12 types = { 13 "T": "rootInode", 14 }, 15 ) 16 17 go_library( 18 name = "devpts", 19 srcs = [ 20 "devpts.go", 21 "line_discipline.go", 22 "master.go", 23 "queue.go", 24 "replica.go", 25 "root_inode_refs.go", 26 "terminal.go", 27 ], 28 visibility = ["//pkg/sentry:internal"], 29 deps = [ 30 "//pkg/abi/linux", 31 "//pkg/context", 32 "//pkg/errors/linuxerr", 33 "//pkg/log", 34 "//pkg/marshal", 35 "//pkg/marshal/primitive", 36 "//pkg/refs", 37 "//pkg/refsvfs2", 38 "//pkg/safemem", 39 "//pkg/sentry/arch", 40 "//pkg/sentry/fs", 41 "//pkg/sentry/fs/lock", 42 "//pkg/sentry/fsimpl/kernfs", 43 "//pkg/sentry/kernel", 44 "//pkg/sentry/kernel/auth", 45 "//pkg/sentry/unimpl", 46 "//pkg/sentry/vfs", 47 "//pkg/sync", 48 "//pkg/syserror", 49 "//pkg/usermem", 50 "//pkg/waiter", 51 ], 52 ) 53 54 go_test( 55 name = "devpts_test", 56 size = "small", 57 srcs = ["devpts_test.go"], 58 library = ":devpts", 59 deps = [ 60 "//pkg/abi/linux", 61 "//pkg/sentry/contexttest", 62 "//pkg/usermem", 63 ], 64 )