Files
Kevin KrakauerandgVisor bot d01751e25e sentry: use a stronger RNG for address space randomization
Since everything fits inside an int64, we avoid using crypto/rand.Int, which
can allocate and uses the much more complex big.Int.

PiperOrigin-RevId: 580050587
2023-11-06 21:57:14 -08:00

52 lines
1.1 KiB
Python

load("//tools:defs.bzl", "go_library", "proto_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "arch",
srcs = [
"aligned.go",
"arch.go",
"arch_aarch64.go",
"arch_amd64.go",
"arch_arm64.go",
"arch_state_x86.go",
"arch_x86.go",
"arch_x86_impl.go",
"auxv.go",
"signal_amd64.go",
"signal_arm64.go",
"stack.go",
"stack_unsafe.go",
"syscalls_amd64.go",
"syscalls_arm64.go",
],
marshal = True,
visibility = ["//:sandbox"],
deps = [
":registers_go_proto",
"//pkg/abi/linux",
"//pkg/context",
"//pkg/cpuid",
"//pkg/errors/linuxerr",
"//pkg/hostarch",
"//pkg/log",
"//pkg/marshal",
"//pkg/marshal/primitive",
"//pkg/rand",
"//pkg/sentry/arch/fpu",
"//pkg/sentry/limits",
"//pkg/usermem",
"@org_golang_x_sys//unix:go_default_library",
],
)
proto_library(
name = "registers",
srcs = ["registers.proto"],
visibility = ["//visibility:public"],
)