Files
Etienne PerotandgVisor bot 8d1cd3dbae seccomp: Refactor to allow arbitrary number of RuleSets.
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
2026-02-10 11:41:43 -08:00

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",
],
)