Files
Andrei VaginandgVisor bot 129734a352 Pass NEWLINK netlink commands to network stacks
The NEWLINK commands contains many properties and here is no reason to have
another abstract interface between the Sentry and network stacks.

PiperOrigin-RevId: 627916629
2024-04-24 18:42:44 -07:00

56 lines
1.3 KiB
Python

load("//pkg/sync/locking:locking.bzl", "declare_mutex")
load("//tools:defs.bzl", "go_library")
load("//tools/go_generics:defs.bzl", "go_template_instance")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:sandbox"],
licenses = ["notice"],
)
go_template_instance(
name = "namespace_refs",
out = "namespace_refs.go",
package = "inet",
prefix = "namespace",
template = "//pkg/refs:refs_template",
types = {
"T": "Namespace",
},
)
declare_mutex(
name = "abstract_socket_namespace_mutex",
out = "abstract_socket_namespace_mutex.go",
package = "inet",
prefix = "abstractSocketNamespace",
)
go_library(
name = "inet",
srcs = [
"abstract_socket_namespace.go",
"abstract_socket_namespace_mutex.go",
"context.go",
"inet.go",
"namespace.go",
"namespace_refs.go",
"test_stack.go",
],
deps = [
"//pkg/abi/linux",
"//pkg/atomicbitops",
"//pkg/context",
"//pkg/refs",
"//pkg/sentry/fsimpl/nsfs",
"//pkg/sentry/kernel/auth",
"//pkg/sentry/socket/netlink/nlmsg",
"//pkg/sentry/socket/unix/transport",
"//pkg/sync",
"//pkg/sync/locking",
"//pkg/syserr",
"//pkg/tcpip",
"//pkg/tcpip/stack",
],
)