mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Ubuntu TPU images do not have the vfio-dev directories that COS images do, so we need a more robust way of setting up the sandbox chroot to handle this case. This change implements a way to get devices and minor numbers into the sandbox with minimal support from the host filesystem and cleans up a few methods to reflect their current usage. Addresses #10795 PiperOrigin-RevId: 674363342
30 lines
670 B
Python
30 lines
670 B
Python
load("//tools:defs.bzl", "go_library")
|
|
|
|
package(default_applicable_licenses = ["//:license"])
|
|
|
|
licenses(["notice"])
|
|
|
|
go_library(
|
|
name = "tpuproxy",
|
|
srcs = [
|
|
"seccomp_filter.go",
|
|
"tpuproxy.go",
|
|
],
|
|
visibility = [
|
|
"//pkg/sentry:internal",
|
|
],
|
|
deps = [
|
|
"//pkg/abi/gasket",
|
|
"//pkg/abi/linux",
|
|
"//pkg/abi/tpu",
|
|
"//pkg/context",
|
|
"//pkg/fspath",
|
|
"//pkg/seccomp",
|
|
"//pkg/sentry/devices/tpuproxy/accel",
|
|
"//pkg/sentry/devices/tpuproxy/vfio",
|
|
"//pkg/sentry/kernel/auth",
|
|
"//pkg/sentry/vfs",
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
],
|
|
)
|