oss-sec mailing list archives

Re: xscreensaver package caps gets raw socket


From: Ariadne Conill <ariadne () dereferenced org>
Date: Mon, 19 Apr 2021 12:15:59 -0600 (MDT)

Hello,

On Mon, 19 Apr 2021, David A. Wheeler wrote:

On Apr 18, 2021, at 8:25 AM, Simon McVittie <smcv () debian org> wrote:
Scraping is undesirable, but sometimes needed. If this is a common need, a
long-term solution might be to create an option on ping to generate a standard
format that’s easier to machine-parse.

On Apr 19, 2021, at 1:35 PM, Ariadne Conill <ariadne () dereferenced org> wrote:
This already exists as fping(1), for example:

The problem for application developers is that “ping” exists practically everywhere,
while fping does not.

Absolutely true, but fping is packaged in most Linux distributions, as well as all of the BSDs, due to its use by various network monitoring programs such as smokeping and nagios, so it seems like a reasonable dependency for cases like these.

IMO, it's better that programs declare something like fping as a dependency, so that we don't have to deal with yet another program years from now having elevated privileges and being abused to run tcpdump... :)

Seriously, if anyone on this list ever finds themselves writing a program where they need to fire off some pings, instead of making their program SUID or granting it cap_net_raw, just use fping instead. At the very least, you'll be happier because you don't have to write your own ping code, and the distribution maintainers of the world will be happier because you *didn't* write your own ping code.

Ariadne

Current thread: