File: internal.md

package info (click to toggle)
rootlesskit 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: sh: 433; makefile: 25
file content (27 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Internal data structure

## State dir
Common:
- `lock`
- `child_pid`
- `api.sock`
- `netns` (detached netns)

Network driver `slirp4netns`:
- `.s4nn.sock`

Port driver `builtin`:
- `.bp.sock`
- `.bp-ready.pipe`

## Parent-child communication

```mermaid
sequenceDiagram
	Parent ->> Child:  ParentHello
	Child -->> Parent: ChildHello
	Parent ->> Child:  ParentInitIdmapCompleted
	Child -->> Parent: ChildInitUserNSCompleted
	Parent ->> Child:  ParentInitNetworkDriverCompleted
	Parent ->> Child:  ParentInitPortDriverCompleted
```