Files
Kevin KrakauerandgVisor bot 9488cfcf0b nftables: use a secure RNG
Linux implements the random operation with a cryptographically secure RNG. We
must do the same.

PiperOrigin-RevId: 678301194
2024-09-24 10:22:10 -07:00

42 lines
800 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "nftables",
srcs = [
"nftables.go",
"nftinterp.go",
],
deps = [
"//pkg/abi/linux",
"//pkg/rand",
"//pkg/tcpip",
"//pkg/tcpip/checksum",
"//pkg/tcpip/header",
"//pkg/tcpip/stack",
],
)
go_test(
name = "nftables_test",
srcs = [
"nftables_test.go",
"nftinterp_test.go",
],
library = ":nftables",
deps = [
"//pkg/abi/linux",
"//pkg/buffer",
"//pkg/rand",
"//pkg/sync",
"//pkg/tcpip",
"//pkg/tcpip/faketime",
"//pkg/tcpip/header",
"//pkg/tcpip/stack",
],
)