From d5d0bed479497560489983ae1fc80444b44fe029 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Mon, 17 Jan 2022 12:04:16 +0530 Subject: [PATCH] Workaround CentOS 8-stream bug until fixed Recent iputils release in CentOS 8-stream causing ping failures with non root user. This needs a fix in systemd package as mentioned in the Related Bugs, until it's fixed and is in 8-stream mirrors let's workaround it by setting net.ipv4.ping_group_range setting manually. Related-Bug: #1957941 Related-Bug: rhbz#2037807 Change-Id: I0d8dac910647968b625020c2a94e626ba5255058 --- tools/fixup_stuff.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index 750849db68..f24ac40ad5 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -83,6 +83,11 @@ function fixup_fedora { if is_package_installed python3-setuptools; then sudo dnf reinstall -y python3-setuptools fi + # Workaround CentOS 8-stream iputils and systemd Bug + # https://bugzilla.redhat.com/show_bug.cgi?id=2037807 + if [[ $os_VENDOR == "CentOSStream" && $os_RELEASE -eq 8 ]]; then + sudo sysctl -w net.ipv4.ping_group_range='0 2147483647' + fi } function fixup_suse {