gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/runsc/boot/filter/BUILD (about) 1 load("//pkg/seccomp/precompiledseccomp:defs.bzl", "precompiled_seccomp_rules") 2 load("//test/secbench:defs.bzl", "secbench_test") 3 load("//tools:defs.bzl", "go_library", "go_test") 4 5 package( 6 default_applicable_licenses = ["//:license"], 7 licenses = ["notice"], 8 ) 9 10 precompiled_seccomp_rules( 11 name = "filter_precompiled", 12 out = "filter_precompiled.go", 13 exclude_in_fastbuild = True, 14 out_package_name = "filter", 15 programs_to_compile_go_import = "gvisor.dev/gvisor/runsc/boot/filter/config", 16 programs_to_compile_go_library = "//runsc/boot/filter/config", 17 ) 18 19 go_library( 20 name = "filter", 21 srcs = [ 22 "filter.go", 23 "filter_precompiled.go", 24 ], 25 visibility = [ 26 "//runsc/boot:__subpackages__", 27 ], 28 deps = [ 29 "//pkg/abi/linux", 30 "//pkg/log", 31 "//pkg/seccomp", 32 "//pkg/seccomp/precompiledseccomp", 33 "//pkg/sync", 34 "//runsc/boot/filter/config", 35 ], 36 ) 37 38 secbench_test( 39 name = "filter_bench_test", 40 srcs = ["filter_bench_test.go"], 41 deps = [ 42 ":filter", 43 "//pkg/abi/linux", 44 "//pkg/seccomp", 45 "//pkg/sentry/platform/kvm", 46 "//pkg/sentry/platform/systrap", 47 "//runsc/boot/filter/config", 48 "//test/secbench", 49 "//test/secbench/secbenchdef", 50 "@org_golang_x_sys//unix:go_default_library", 51 ], 52 ) 53 54 go_test( 55 name = "filter_fuzz_test", 56 srcs = [ 57 "filter_fuzz_test.go", 58 ], 59 deps = [ 60 "//pkg/abi/linux", 61 "//pkg/seccomp", 62 "//pkg/sentry/platform/systrap", 63 "//runsc/boot/filter/config", 64 "//test/secfuzz", 65 ], 66 )