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

package(licenses = ["notice"])

proto_library(
    name = "control",
    srcs = ["control.proto"],
    visibility = ["//visibility:public"],
)

go_library(
    name = "control",
    srcs = [
        "control.go",
        "events.go",
        "fs.go",
        "lifecycle.go",
        "logging.go",
        "pprof.go",
        "proc.go",
        "state.go",
        "usage.go",
    ],
    visibility = [
        "//:sandbox",
    ],
    deps = [
        "//pkg/abi/linux",
        "//pkg/context",
        "//pkg/eventchannel",
        "//pkg/fd",
        "//pkg/log",
        "//pkg/sentry/fdimport",
        "//pkg/sentry/fs",
        "//pkg/sentry/fs/host",
        "//pkg/sentry/fs/user",
        "//pkg/sentry/fsimpl/host",
        "//pkg/sentry/kernel",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/kernel/time",
        "//pkg/sentry/limits",
        "//pkg/sentry/state",
        "//pkg/sentry/strace",
        "//pkg/sentry/usage",
        "//pkg/sentry/vfs",
        "//pkg/sentry/watchdog",
        "//pkg/sync",
        "//pkg/tcpip/link/sniffer",
        "//pkg/urpc",
        "//pkg/usermem",
        "@org_golang_x_sys//unix:go_default_library",
    ],
)

go_test(
    name = "control_test",
    size = "small",
    srcs = ["proc_test.go"],
    library = ":control",
    deps = [
        "//pkg/log",
        "//pkg/sentry/kernel/time",
        "//pkg/sentry/usage",
    ],
)