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
|
load("//tools:defs.bzl", "go_library", "go_test")
load("//tools/go_fieldenum:defs.bzl", "go_fieldenum")
load("//tools/go_generics:defs.bzl", "go_template_instance")
licenses(["notice"])
go_fieldenum(
name = "seccheck_fieldenum",
srcs = [
"clone.go",
"execve.go",
"exit.go",
"task.go",
],
out = "seccheck_fieldenum.go",
package = "seccheck",
)
go_template_instance(
name = "seqatomic_checkerslice",
out = "seqatomic_checkerslice_unsafe.go",
package = "seccheck",
suffix = "CheckerSlice",
template = "//pkg/sync/seqatomic:generic_seqatomic",
types = {
"Value": "[]Checker",
},
)
go_library(
name = "seccheck",
srcs = [
"clone.go",
"execve.go",
"exit.go",
"seccheck.go",
"seccheck_fieldenum.go",
"seqatomic_checkerslice_unsafe.go",
"task.go",
],
visibility = ["//:sandbox"],
deps = [
"//pkg/abi/linux",
"//pkg/context",
"//pkg/gohacks",
"//pkg/sentry/kernel/auth",
"//pkg/sentry/kernel/time",
"//pkg/sync",
],
)
go_test(
name = "seccheck_test",
size = "small",
srcs = ["seccheck_test.go"],
library = ":seccheck",
deps = ["//pkg/context"],
)
|