liboping
liboping copied to clipboard
Open raw sockets when adding hosts, not when doing the pinging
This allows this to run as non-root again, without this, oping will have dropped privileges before trying to ping, which then fails to open the necessary raw sockets.
Fixes: #34
I've uploaded a version to Debian that includes this fix.
Could this be related to https://github.com/octo/liboping/issues/43 - I'm using Ubuntu version which most likely includes the same fix.
Hi,
this patch (or something along that lines) is necessary for oping/noping to work correctly on FreeBSD for non-root users (running suid root). "master as is" will drop privs too early, resulting in a cascade of
ping_send failed: Operation not permitted ping_send failed: Operation not permitted ping_send failed: Operation not permitted ping_send failed: Operation not permitted ping_send failed: Operation not permitted
even when installed mode 4711 (suid root). @octo can you please merge this, or something similar?
I am willing test variants on FreeBSD.
We use noping a lot, but we want the multiping patch, so we need "master + privilege dropping fix"...
thanks