gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/seccomp/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "seccomp", 10 srcs = [ 11 "seccomp.go", 12 "seccomp_amd64.go", 13 "seccomp_arm64.go", 14 "seccomp_fuzz_helpers.go", 15 "seccomp_optimizer.go", 16 "seccomp_rules.go", 17 "seccomp_unsafe.go", 18 ], 19 visibility = ["//:sandbox"], 20 deps = [ 21 "//pkg/abi/linux", 22 "//pkg/bpf", 23 "//pkg/log", 24 "@org_golang_x_sys//unix:go_default_library", 25 ], 26 ) 27 28 go_test( 29 name = "seccomp_test", 30 size = "small", 31 srcs = [ 32 "seccomp_test.go", 33 ], 34 embedsrcs = [ 35 "//pkg/seccomp/victim", # keep 36 ], 37 library = ":seccomp", 38 deps = [ 39 "//pkg/abi/linux", 40 "//pkg/bpf", 41 "@org_golang_x_sys//unix:go_default_library", 42 ], 43 )