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

licenses(["notice"])

go_library(
    name = "sys",
    srcs = [
        "sys.go",
    ],
    visibility = ["//pkg/sentry:internal"],
    deps = [
        "//pkg/abi/linux",
        "//pkg/context",
        "//pkg/sentry/fsimpl/kernfs",
        "//pkg/sentry/kernel",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/vfs",
        "//pkg/sentry/vfs/lock",
        "//pkg/syserror",
    ],
)

go_test(
    name = "sys_test",
    srcs = ["sys_test.go"],
    deps = [
        ":sys",
        "//pkg/abi/linux",
        "//pkg/sentry/fsimpl/testutil",
        "//pkg/sentry/kernel",
        "//pkg/sentry/kernel/auth",
        "//pkg/sentry/vfs",
        "@com_github_google_go-cmp//cmp:go_default_library",
    ],
)