[ale] Ping not setuid anymore?

DJ-Pfulio DJPfulio at jdpfu.com
Fri Jun 26 10:37:57 EDT 2020


Forever, /bin/ping had to be setuid root to work due to "raw sockets."

Noticed that in 20.04, ping isn't setuid root, but still works?
$ ls -F ping
-rwxr-xr-x 1 root root 72776 Jan 30 18:11 ping*

$ getcap /bin/ping
/bin/ping = cap_net_raw+ep

$ man getcap

NAME
        getcap - examine file capabilities

DESCRIPTION
        getcap displays the name and capabilities of each specified

What more could a manpage say? This has got to be one of the most useless manpages I've ever seen.  It certainly isn't ssh or rsync, which are works of art.  Seems a list of capabilities and meanings for each would be helpful?


More information about the Ale mailing list