Hello Jonathan,
Thanks for the bug report and the patch!
I've taken the time to test the issue in a new install of bookworm and I
wasn't able to reproduce it: smokeping correctly collects ping data from
localhost.
From what I can see in the VM, fping was already setup with cap_net_raw
directly on it:
root@bookworm:~# getcap /usr/bin/fping
/usr/bin/fping cap_net_raw=ep
and if I understand correctly, it was set in place by fping's postinst
script:
https://sources.debian.org/src/fping/5.1-1/debian/postinst/#L9
By the version of the package in the report, I'm guessing your system is
running bookworm. Was your system upgraded from bullseye? I'm trying to
understand how you could end up without the capability set, this way we
can know more precisely what we could add to a file in
/usr/share/doc/smokeping/