I’m running into an issue with validate.php
and fping6
on Debian Buster (10). Namely, /usr/bin/fping6
is a symlink and getcap
doesn’t seem to follow symlinks. The end result being that validate.php
suggests a fix for fping6
capabilities which in fact are already correct:
[FAIL] fping6 should have CAP_NET_RAW!
[FIX] getcap c /usr/bin/fping6
# ls -la /usr/bin/fping /usr/bin/fping6
-rwxr-xr-x 1 root root 48032 Feb 19 2019 /usr/bin/fping
lrwxrwxrwx 1 root root 5 Feb 19 2019 /usr/bin/fping6 -> fping
# getcap /usr/bin/fping
/usr/bin/fping = cap_net_raw+ep
# getcap /usr/bin/fping6
# echo $?
0
Sort-of related, the suggested fix uses getcap
while I think it should suggest setcap cap_net_raw+ep <path>
thank you!