summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/control/BUILD
blob: 2029e7cf4cd618987f75c47e9b95fbcc28d81981 (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
load("//tools:defs.bzl", "go_library", "go_test")

package(licenses = ["notice"])

go_library(
    name = "control",
    srcs = [
        "control.go",
        "control_vfs2.go",
    ],
    imports = [
        "gvisor.dev/gvisor/pkg/sentry/fs",
    ],
    visibility = ["//pkg/sentry:internal"],
    deps = [
        "//pkg/abi/linux",
        "//pkg/bits",
        "//pkg/context",
        "//pkg/hostarch",
        "//pkg/marshal",
        "//pkg/marshal/primitive",
        "//pkg/sentry/fs",
        "//pkg/sentry/kernel",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/socket",
        "//pkg/sentry/socket/unix/transport",
        "//pkg/sentry/vfs",
        "//pkg/syserror",
    ],
)

go_test(
    name = "control_test",
    size = "small",
    srcs = ["control_test.go"],
    library = ":control",
    deps = [
        "//pkg/abi/linux",
        "//pkg/binary",
        "//pkg/hostarch",
        "//pkg/sentry/socket",
        "@com_github_google_go_cmp//cmp:go_default_library",
    ],
)