diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-11 03:32:21 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-11 03:36:20 +0900 |
| commit | 2494ede1067d5071d3cc7d355cdc2ae3fac66dc5 (patch) | |
| tree | 77cd8ef4785a83918f78389ce05011b0fc14bd97 /container/container.go | |
| parent | da3848b92f22259d97b1d3851e17d1a8c6ffeb3d (diff) | |
container/init: configure interface lo
This enables loopback networking when owning the net namespace.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container.go')
| -rw-r--r-- | container/container.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/container/container.go b/container/container.go index bb60c23e..d76a0907 100644 --- a/container/container.go +++ b/container/container.go @@ -263,6 +263,8 @@ func (p *Container) Start() error { CAP_SYS_ADMIN, // drop capabilities CAP_SETPCAP, + // bring up loopback interface + CAP_NET_ADMIN, // overlay access to upperdir and workdir CAP_DAC_OVERRIDE, }, |
