Skip to content

Commit 0f88965

Browse files
manninglucasgvisor-bot
authored andcommitted
Implement the PacketMMapEndpoint interface for PACKET_MMAP.
This code is tested in the subsequent change with syscall tests. PiperOrigin-RevId: 721861305
1 parent 198ac83 commit 0f88965

File tree

4 files changed

+713
-0
lines changed

4 files changed

+713
-0
lines changed

Diff for: pkg/sentry/socket/netstack/packetmmap/BUILD

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
load("//tools:defs.bzl", "go_library")
2+
3+
package(
4+
default_applicable_licenses = ["//:license"],
5+
licenses = ["notice"],
6+
)
7+
8+
go_library(
9+
name = "packetmmap",
10+
srcs = [
11+
"endpoint.go",
12+
"endpoint_state.go",
13+
"ring_buffer.go",
14+
],
15+
visibility = [
16+
"//visibility:public",
17+
],
18+
deps = [
19+
"//pkg/abi/linux",
20+
"//pkg/atomicbitops",
21+
"//pkg/bitmap",
22+
"//pkg/buffer",
23+
"//pkg/context",
24+
"//pkg/errors/linuxerr",
25+
"//pkg/hostarch",
26+
"//pkg/safemem",
27+
"//pkg/sentry/memmap",
28+
"//pkg/sentry/pgalloc",
29+
"//pkg/sentry/socket",
30+
"//pkg/sentry/usage",
31+
"//pkg/sync",
32+
"//pkg/tcpip",
33+
"//pkg/tcpip/header",
34+
"//pkg/tcpip/stack",
35+
"//pkg/waiter",
36+
],
37+
)

0 commit comments

Comments
 (0)