mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
Adds initial scaffolding for eBPF in gVisor. It implements the bpf(2) syscall with support for BPF_PROG_LOAD, BPF_PROG_QUERY, and BPF_PROG_ATTACH. Necessary for the cgroups v2 flag to be enabled by default, as this fixes Docker-in-gVisor with cgroups v2.
18 lines
346 B
Python
18 lines
346 B
Python
load("//tools:defs.bzl", "go_library")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "ebpf",
|
|
srcs = [
|
|
"ebpf.go",
|
|
"types.go",
|
|
],
|
|
imports = ["gvisor.dev/gvisor/pkg/abi/linux"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//pkg/abi/linux"],
|
|
)
|