summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/gofer/BUILD
blob: c08301d192fab862c329526a13f1dff6a56cc1d5 (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
63
64
65
66
67
68
69
70
71
72
load("//tools:defs.bzl", "go_library", "go_test")

package(licenses = ["notice"])

go_library(
    name = "gofer",
    srcs = [
        "attr.go",
        "cache_policy.go",
        "context_file.go",
        "device.go",
        "fifo.go",
        "file.go",
        "file_state.go",
        "fs.go",
        "handles.go",
        "inode.go",
        "inode_state.go",
        "path.go",
        "session.go",
        "session_state.go",
        "socket.go",
        "util.go",
    ],
    visibility = ["//pkg/sentry:internal"],
    deps = [
        "//pkg/abi/linux",
        "//pkg/context",
        "//pkg/errors/linuxerr",
        "//pkg/fd",
        "//pkg/hostarch",
        "//pkg/log",
        "//pkg/metric",
        "//pkg/p9",
        "//pkg/refs",
        "//pkg/safemem",
        "//pkg/secio",
        "//pkg/sentry/device",
        "//pkg/sentry/fs",
        "//pkg/sentry/fs/fdpipe",
        "//pkg/sentry/fs/fsutil",
        "//pkg/sentry/fs/host",
        "//pkg/sentry/fsmetric",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/kernel/pipe",
        "//pkg/sentry/kernel/time",
        "//pkg/sentry/memmap",
        "//pkg/sentry/socket/unix/transport",
        "//pkg/sync",
        "//pkg/syserr",
        "//pkg/syserror",
        "//pkg/unet",
        "//pkg/usermem",
        "//pkg/waiter",
        "@org_golang_x_sys//unix:go_default_library",
    ],
)

go_test(
    name = "gofer_test",
    size = "small",
    srcs = ["gofer_test.go"],
    library = ":gofer",
    deps = [
        "//pkg/context",
        "//pkg/p9",
        "//pkg/p9/p9test",
        "//pkg/sentry/contexttest",
        "//pkg/sentry/fs",
        "@org_golang_x_sys//unix:go_default_library",
    ],
)