github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/fsimpl/verity/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 licenses(["notice"]) 4 5 go_library( 6 name = "verity", 7 srcs = [ 8 "filesystem.go", 9 "save_restore.go", 10 "verity.go", 11 ], 12 visibility = ["//pkg/sentry:internal"], 13 deps = [ 14 "//pkg/abi/linux", 15 "//pkg/context", 16 "//pkg/errors/linuxerr", 17 "//pkg/fspath", 18 "//pkg/hostarch", 19 "//pkg/marshal/primitive", 20 "//pkg/merkletree", 21 "//pkg/refsvfs2", 22 "//pkg/safemem", 23 "//pkg/sentry/arch", 24 "//pkg/sentry/fs/lock", 25 "//pkg/sentry/kernel", 26 "//pkg/sentry/kernel/auth", 27 "//pkg/sentry/memmap", 28 "//pkg/sentry/socket/unix/transport", 29 "//pkg/sentry/vfs", 30 "//pkg/sync", 31 "//pkg/syserror", 32 "//pkg/usermem", 33 ], 34 ) 35 36 go_test( 37 name = "verity_test", 38 srcs = [ 39 "verity_test.go", 40 ], 41 library = ":verity", 42 deps = [ 43 "//pkg/abi/linux", 44 "//pkg/context", 45 "//pkg/errors/linuxerr", 46 "//pkg/fspath", 47 "//pkg/sentry/arch", 48 "//pkg/sentry/fsimpl/testutil", 49 "//pkg/sentry/fsimpl/tmpfs", 50 "//pkg/sentry/kernel", 51 "//pkg/sentry/kernel/auth", 52 "//pkg/sentry/vfs", 53 "//pkg/usermem", 54 ], 55 )