gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/seccheck/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 = "seqatomic_sinkslice",
    10      out = "seqatomic_sinkslice_unsafe.go",
    11      package = "seccheck",
    12      suffix = "SinkSlice",
    13      template = "//pkg/sync/seqatomic:generic_seqatomic",
    14      types = {
    15          "Value": "[]Sink",
    16      },
    17  )
    18  
    19  go_library(
    20      name = "seccheck",
    21      srcs = [
    22          "config.go",
    23          "metadata.go",
    24          "metadata_amd64.go",
    25          "metadata_arm64.go",
    26          "seccheck.go",
    27          "seqatomic_sinkslice_unsafe.go",
    28          "syscall.go",
    29      ],
    30      visibility = ["//:sandbox"],
    31      deps = [
    32          "//pkg/abi",
    33          "//pkg/abi/linux",
    34          "//pkg/abi/sentry",
    35          "//pkg/atomicbitops",
    36          "//pkg/context",
    37          "//pkg/fd",
    38          "//pkg/gohacks",
    39          "//pkg/log",
    40          "//pkg/metric",
    41          "//pkg/sentry/arch",
    42          "//pkg/sentry/kernel/time",
    43          "//pkg/sentry/seccheck/points:points_go_proto",
    44          "//pkg/sync",
    45          "@org_golang_google_protobuf//proto:go_default_library",
    46      ],
    47  )
    48  
    49  go_test(
    50      name = "seccheck_test",
    51      size = "small",
    52      srcs = [
    53          "config_test.go",
    54          "metadata_test.go",
    55          "seccheck_test.go",
    56      ],
    57      library = ":seccheck",
    58      deps = [
    59          "//pkg/context",
    60          "//pkg/fd",
    61          "//pkg/sentry/seccheck/points:points_go_proto",
    62      ],
    63  )