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
This commit is contained in:
parent
58adb872fa
commit
50c2dab063
@ -215,6 +215,13 @@ if [ "${MANAGE_REPOS}" = true ]; then
|
|||||||
fi
|
fi
|
||||||
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)"
|
print_header "Running Puppet Scenario: ${SCENARIO} (1st time)"
|
||||||
run_puppet $SCENARIO
|
run_puppet $SCENARIO
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user