Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support kernel parameter ping_group_range allowing unprivileged users to use ICMP (ping) #250

Open
browniebraun opened this issue Mar 11, 2022 · 0 comments

Comments

@browniebraun
Copy link
Member

Today SPINE is only supporting ICMP if running as root -
to verify that it has root permissions capabilities for RAW_NET (hasCaps()) as well as setuid will be taken into account.

Since kernel release 2.6.x parameter ping_group_range will be supported that allows a range of user groups to use RAW sockets for PING as unprivileged users.

Many distributions are supporting that today per default, OpenNMS is also mentioning that option.
( see [https://opennms.discourse.group/t/how-to-allow-unprivileged-users-to-use-icmp-ping/1573] )

The parameter vvalue can be reviewed at CLI level for example with:

browniebraun@browniebraun-Lenovo-ideapad-530S-14IKB:~$ /sbin/sysctl net.ipv4.ping_group_range net.ipv4.ping_group_range = 0 2147483647
If disabled net.ipv4.ping_group_range will return "1 0".

ping.c offers a function called inet_get_ping_group_range_net(), probably this could be used as an entry point for a modification of Spine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant