From 50c2dab0634e33ed3ce15af0baf03a878ef0b131 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 14 Jan 2022 18:33:47 +0900 Subject: [PATCH] Fix unprivileged ping Recent iputils in CentOS 8 Stream removed capabilities on the ping binary and requires the change in net.ipv4.ping_group_range to allow unprivileged users to ping, however the change in systemd[1] is not yet shipped. This is a temporal workaround and sets the kernel parameter. This can be removed once the fix is shipped as part of a new systemd package. [1] https://github.com/redhat-plumbers/systemd-rhel8/pull/246 Closes-Bug: #1957913 Change-Id: I6fc0e7a62106c53d983818fc8c8b9d1e1cdebb31 --- run_tests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index f3aa90ee0..013047383 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -215,6 +215,13 @@ if [ "${MANAGE_REPOS}" = true ]; then fi fi +# NOTE(tkajinam): This is required to fix unprivileged ping, until +# the following change is shipped +# https://github.com/redhat-plumbers/systemd-rhel8/pull/246 +if is_fedora; then + sudo sysctl -w net.ipv4.ping_group_range='0 2147483647' +fi + print_header "Running Puppet Scenario: ${SCENARIO} (1st time)" run_puppet $SCENARIO RESULT=$?