[PATCH] RFC: Don't override system's default ping_group_range for pasta
When spawning a command, pasta sets the net.ipv4.ping_group_range sysctl
to 0 0, meaning only group 0 can use ping sockets within the namespace.
Since group 0 is the only one we map in the userns, that's equivalent to
anyone being able to use ping sockets.
Although the kernel default for this is 1 0 (nobody can use ping sockets),
common distros - at least ones using systemd or even just systemd-udevd -
appear to set it to "0 2147483647" meaning effectively anyone can use
ping sockets.
There's no obvious reason that we need to override the system's default
behaviour here. The override was introduced in 32d07f5e5 ("passt, pasta:
Completely avoid dynamic memory allocation") as part of a large chunk which
kind of looks like it was meant to be in another patch, so the git history
isn't particularly informative.
Signed-off-by: David Gibson
participants (1)
-
David Gibson