Files
systemd/test
totoro c3c9e7f14d nspawn: set ping group range for userns containers
A newly created network namespace may disallow ICMP echo sockets for
unprivileged users even when their GIDs are mapped into the container.

When creating both user and network namespaces, initialize
net.ipv4.ping_group_range using the mapped GID range capped at INT32_MAX.
This follows the system-wide default from sysctl.d/50-default.conf while
respecting the user namespace mapping and the kernel's accepted limit.
Leave externally supplied network namespaces untouched and treat write
failures as non-fatal warnings.

Add regression coverage for the default 64K mapped range using the tools
already available in the minimal container image.

Fixes #41603

(cherry picked from commit 2fa149f2c4)
(cherry picked from commit 1792f7e1c7)
(cherry picked from commit 8fb64c6724)
(cherry picked from commit 833156d187)
2026-09-11 17:28:39 +01:00
..
…
2025-08-20 16:17:11 +09:00
…