gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/fsimpl/sys/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 load("//tools/go_generics:defs.bzl", "go_template_instance") 3 4 package(default_applicable_licenses = ["//:license"]) 5 6 licenses(["notice"]) 7 8 go_template_instance( 9 name = "dir_refs", 10 out = "dir_refs.go", 11 package = "sys", 12 prefix = "dir", 13 template = "//pkg/refs:refs_template", 14 types = { 15 "T": "dir", 16 }, 17 ) 18 19 go_library( 20 name = "sys", 21 srcs = [ 22 "dir_refs.go", 23 "kcov.go", 24 "pci.go", 25 "sys.go", 26 ], 27 visibility = ["//pkg/sentry:internal"], 28 deps = [ 29 "//pkg/abi/linux", 30 "//pkg/atomicbitops", 31 "//pkg/context", 32 "//pkg/coverage", 33 "//pkg/errors/linuxerr", 34 "//pkg/fsutil", 35 "//pkg/log", 36 "//pkg/refs", 37 "//pkg/sentry/arch", 38 "//pkg/sentry/fsimpl/host", 39 "//pkg/sentry/fsimpl/kernfs", 40 "//pkg/sentry/inet", 41 "//pkg/sentry/kernel", 42 "//pkg/sentry/kernel/auth", 43 "//pkg/sentry/memmap", 44 "//pkg/sentry/vfs", 45 "//pkg/usermem", 46 "@org_golang_x_sys//unix:go_default_library", 47 ], 48 ) 49 50 go_test( 51 name = "sys_test", 52 srcs = ["sys_test.go"], 53 deps = [ 54 ":sys", 55 "//pkg/abi/linux", 56 "//pkg/sentry/fsimpl/testutil", 57 "//pkg/sentry/kernel", 58 "//pkg/sentry/kernel/auth", 59 "//pkg/sentry/vfs", 60 "@com_github_google_go_cmp//cmp:go_default_library", 61 ], 62 )