summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/devpts/BUILD
blob: 84baaac661063252d25613c237f6cbf78bedaee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
load("//tools:defs.bzl", "go_library", "go_test")
load("//tools/go_generics:defs.bzl", "go_template_instance")

licenses(["notice"])

go_template_instance(
    name = "root_inode_refs",
    out = "root_inode_refs.go",
    package = "devpts",
    prefix = "rootInode",
    template = "//pkg/refs_vfs2:refs_template",
    types = {
        "T": "rootInode",
    },
)

go_library(
    name = "devpts",
    srcs = [
        "devpts.go",
        "line_discipline.go",
        "master.go",
        "queue.go",
        "replica.go",
        "root_inode_refs.go",
        "terminal.go",
    ],
    visibility = ["//pkg/sentry:internal"],
    deps = [
        "//pkg/abi/linux",
        "//pkg/context",
        "//pkg/log",
        "//pkg/marshal",
        "//pkg/marshal/primitive",
        "//pkg/refs",
        "//pkg/safemem",
        "//pkg/sentry/arch",
        "//pkg/sentry/fs",
        "//pkg/sentry/fs/lock",
        "//pkg/sentry/fsimpl/kernfs",
        "//pkg/sentry/kernel",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/unimpl",
        "//pkg/sentry/vfs",
        "//pkg/sync",
        "//pkg/syserror",
        "//pkg/usermem",
        "//pkg/waiter",
    ],
)

go_test(
    name = "devpts_test",
    size = "small",
    srcs = ["devpts_test.go"],
    library = ":devpts",
    deps = [
        "//pkg/abi/linux",
        "//pkg/sentry/contexttest",
        "//pkg/usermem",
    ],
)