fping: install fping SUID root
authorHenrique de Moraes Holschuh <redacted>
Sun, 3 May 2020 02:05:03 +0000 (23:05 -0300)
committerHenrique de Moraes Holschuh <redacted>
Wed, 6 May 2020 18:44:48 +0000 (15:44 -0300)
commit958cbf5f45d1e417751872a246ad04ab4980ee6e
treeb17f06980106ef898f6a0abfc53abbf1ce69d814
parent997723342bdfb6b3bd0553ae6471671ac1e56442
fping: install fping SUID root

fping requires either root or CAP_NET_PING to work, otherwise it is
useless.  Use INSTALL_SUID so that fping will be setuid root, and thus
it will be usable by non-root users.

fping knows to drop root priviledges after it parses the command line
and creates the ping socket.  You actually get a lot less code running
as root when you make it setuid root and run it from an unprivileged
user.

This is the same way net/iputils already handles "ping", which has the
same requirements.

Signed-off-by: Henrique de Moraes Holschuh <redacted>
net/fping/Makefile
git clone https://git.99rst.org/PROJECT