mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
This is meant to make #12557 possible to implement, i.e. making it possible for the seccomp configuration to specify actions other than deny/allow in the main `runsc` configuration. This change doesn't do that but it adds the structures to make that possible. PiperOrigin-RevId: 868246148
52 lines
937 B
Python
52 lines
937 B
Python
load("//tools:defs.bzl", "bzl_library", "go_library", "go_test")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "precompiledseccomp",
|
|
srcs = ["precompiledseccomp.go"],
|
|
visibility = ["//:sandbox"],
|
|
deps = [
|
|
"//pkg/bpf",
|
|
"//pkg/log",
|
|
"//pkg/seccomp",
|
|
],
|
|
)
|
|
|
|
# @unused
|
|
glaze_ignore = [
|
|
"precompiled_lib.tmpl.go",
|
|
"precompile_gen.go",
|
|
]
|
|
|
|
exports_files(
|
|
srcs = [
|
|
"precompile_gen.go",
|
|
"precompiled_lib.tmpl.go",
|
|
],
|
|
visibility = [
|
|
"//:sandbox",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "defs_bzl",
|
|
srcs = ["defs.bzl"],
|
|
visibility = [
|
|
"//:sandbox",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "precompiledseccomp_test",
|
|
srcs = ["precompiledseccomp_test.go"],
|
|
library = ":precompiledseccomp",
|
|
deps = [
|
|
"//pkg/seccomp",
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
],
|
|
)
|