Skip to content

port/builtin: probe source-ip-transparent backend in the detached netns - #649

Merged
AkihiroSuda merged 2 commits into
rootless-containers:masterfrom
AkihiroSuda:issue-648-repro
Oct 12, 2026
Merged

AkihiroSuda merged 2 commits into
rootless-containers:masterfrom
AkihiroSuda:issue-648-repro

Conversation

@AkihiroSuda

@AkihiroSuda AkihiroSuda commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Since v3.2.0, the source-ip-transparent backend probe (nft/iptables)
was executed in RunChildDriver, which runs outside the detached netns.
With --detach-netns, the probe failed with EPERM, as that netns is not
owned by the current userns, and the source IP propagation was silently
disabled.

Run the probe in the detached netns, i.e., the same netns as the rule
installation.

Fix #648

Reproduces issue 648: with --detach-netns, the source-ip-transparent
backend probe runs outside the detached netns and fails with
"Permission denied", so the backend is resolved to "none".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda added this to the v3.2.1 milestone Oct 9, 2026
Since v3.2.0, the source-ip-transparent backend probe (nft/iptables)
was executed in RunChildDriver, which runs outside the detached netns.
With --detach-netns, the probe failed with EPERM, as that netns is not
owned by the current userns, and the source IP propagation was silently
disabled.

Run the probe in the detached netns, i.e., the same netns as the rule
installation.

Fix issue 648

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda changed the title CI: test source IP propagation of the builtin port driver port/builtin: probe source-ip-transparent backend in the detached netns Oct 9, 2026
@AkihiroSuda
AkihiroSuda merged commit 5508c72 into rootless-containers:master Oct 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Propagation of source IP fails with rootlesskit v3.2.0

1 participant