-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
This is a variant over https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864184.
In Debian, oping is installed suid root. In older versions, in liboping.c, doing ping_host_add would also grab a raw socket. In the current version, that is only added when ping_send is called, which is after when oping and noping have dropped their privileges, leading to ping_send failed: Operation not permitted errors.
I'm happy to provide a patch if that's useful, but as there are a few ways of solving this, some guidance would be useful. (Just creating the socket in the add_host function is probably the easiest, from a quick glance.)
Metadata
Metadata
Assignees
Labels
No labels