summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@canonical.com>2018-07-05 18:49:23 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-25 11:26:10 +0200
commit3e895f9786d98d49b012d91dae4ef0084825e31d (patch)
tree13546c9eab5f53c45607ffe071ca75165fb1cf52 /include
parent2e84740b043907afeb0b35980b47d8585d44a4bf (diff)
downloadlinux-stable-3e895f9786d98d49b012d91dae4ef0084825e31d.tar.gz
linux-stable-3e895f9786d98d49b012d91dae4ef0084825e31d.tar.bz2
linux-stable-3e895f9786d98d49b012d91dae4ef0084825e31d.zip
ipv4: Return EINVAL when ping_group_range sysctl doesn't map to user ns
[ Upstream commit 70ba5b6db96ff7324b8cfc87e0d0383cf59c9677 ] The low and high values of the net.ipv4.ping_group_range sysctl were being silently forced to the default disabled state when a write to the sysctl contained GIDs that didn't map to the associated user namespace. Confusingly, the sysctl's write operation would return success and then a subsequent read of the sysctl would indicate that the low and high values are the overflowgid. This patch changes the behavior by clearly returning an error when the sysctl write operation receives a GID range that doesn't map to the associated user namespace. In such a situation, the previous value of the sysctl is preserved and that range will be returned in a subsequent read of the sysctl. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions