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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
load("//tools:defs.bzl", "go_library", "go_test")
load("//tools/go_generics:defs.bzl", "go_template_instance")
licenses(["notice"])
go_template_instance(
name = "request_list",
out = "request_list.go",
package = "fuse",
prefix = "request",
template = "//pkg/ilist:generic_list",
types = {
"Element": "*Request",
"Linker": "*Request",
},
)
go_template_instance(
name = "inode_refs",
out = "inode_refs.go",
package = "fuse",
prefix = "inode",
template = "//pkg/refs_vfs2:refs_template",
types = {
"T": "inode",
},
)
go_library(
name = "fuse",
srcs = [
"connection.go",
"connection_control.go",
"dev.go",
"directory.go",
"file.go",
"fusefs.go",
"inode_refs.go",
"read_write.go",
"register.go",
"regular_file.go",
"request_list.go",
"request_response.go",
],
visibility = ["//pkg/sentry:internal"],
deps = [
"//pkg/abi/linux",
"//pkg/context",
"//pkg/log",
"//pkg/marshal",
"//pkg/refs",
"//pkg/safemem",
"//pkg/sentry/fsimpl/devtmpfs",
"//pkg/sentry/fsimpl/kernfs",
"//pkg/sentry/kernel",
"//pkg/sentry/kernel/auth",
"//pkg/sentry/vfs",
"//pkg/sync",
"//pkg/syserror",
"//pkg/usermem",
"//pkg/waiter",
"@org_golang_x_sys//unix:go_default_library",
],
)
go_test(
name = "fuse_test",
size = "small",
srcs = [
"connection_test.go",
"dev_test.go",
"utils_test.go",
],
library = ":fuse",
deps = [
"//pkg/abi/linux",
"//pkg/marshal",
"//pkg/sentry/fsimpl/testutil",
"//pkg/sentry/kernel",
"//pkg/sentry/kernel/auth",
"//pkg/sentry/vfs",
"//pkg/syserror",
"//pkg/usermem",
"//pkg/waiter",
],
)
|