Files
Etienne PerotandgVisor bot fea639ce00 Add /proc/gvisor/kernel_is_gvisor marker file used to detect gVisor.
This change adds a configuration option to gVisor that, when enabled,
creates a file at `/proc/gvisor/kernel_is_gvisor` that can be used by
applications to detect whether they are running inside a gVisor sandbox.

Useful for testing and introspection.

PiperOrigin-RevId: 749217117
2025-04-18 19:16:59 -07:00

13 lines
244 B
Python

load("//tools:defs.bzl", "go_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "gvisordetect",
srcs = ["gvisordetect.go"],
visibility = ["//visibility:public"],
)