summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/gofer/BUILD
blob: f2c79b47575d2a24832d206846f938c62e452647 (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
package(licenses = ["notice"])

load("//tools/go_stateify:defs.bzl", "go_library", "go_test")

go_library(
    name = "gofer",
    srcs = [
        "attr.go",
        "cache_policy.go",
        "context_file.go",
        "device.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",
    ],
    importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/fs/gofer",
    visibility = ["//pkg/sentry:internal"],
    deps = [
        "//pkg/abi/linux",
        "//pkg/fd",
        "//pkg/log",
        "//pkg/metric",
        "//pkg/p9",
        "//pkg/refs",
        "//pkg/secio",
        "//pkg/sentry/context",
        "//pkg/sentry/device",
        "//pkg/sentry/fs",
        "//pkg/sentry/fs/fdpipe",
        "//pkg/sentry/fs/fsutil",
        "//pkg/sentry/fs/host",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/kernel/time",
        "//pkg/sentry/memmap",
        "//pkg/sentry/safemem",
        "//pkg/sentry/socket/unix/transport",
        "//pkg/sentry/usermem",
        "//pkg/syserr",
        "//pkg/syserror",
        "//pkg/unet",
        "//pkg/waiter",
    ],
)

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