github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/fsimpl/overlay/BUILD (about)

     1  load("//tools:defs.bzl", "go_library")
     2  load("//tools/go_generics:defs.bzl", "go_template_instance")
     3  
     4  licenses(["notice"])
     5  
     6  go_template_instance(
     7      name = "fstree",
     8      out = "fstree.go",
     9      package = "overlay",
    10      prefix = "generic",
    11      template = "//pkg/sentry/vfs/genericfstree:generic_fstree",
    12      types = {
    13          "Dentry": "dentry",
    14      },
    15  )
    16  
    17  go_library(
    18      name = "overlay",
    19      srcs = [
    20          "copy_up.go",
    21          "directory.go",
    22          "filesystem.go",
    23          "fstree.go",
    24          "overlay.go",
    25          "regular_file.go",
    26          "save_restore.go",
    27      ],
    28      visibility = ["//pkg/sentry:internal"],
    29      deps = [
    30          "//pkg/abi/linux",
    31          "//pkg/context",
    32          "//pkg/errors/linuxerr",
    33          "//pkg/fspath",
    34          "//pkg/hostarch",
    35          "//pkg/log",
    36          "//pkg/refs",
    37          "//pkg/refsvfs2",
    38          "//pkg/sentry/arch",
    39          "//pkg/sentry/fs/lock",
    40          "//pkg/sentry/kernel/auth",
    41          "//pkg/sentry/memmap",
    42          "//pkg/sentry/socket/unix/transport",
    43          "//pkg/sentry/vfs",
    44          "//pkg/sync",
    45          "//pkg/syserror",
    46          "//pkg/usermem",
    47          "//pkg/waiter",
    48      ],
    49  )