How is ping for non-root user implemented on Linux distros?
<p>I was browsing through the code for ping form <a href="http://www.skbuff.net/iputils/" rel="noreferrer">iputils</a> package for Linux.
<br/>
<br/>I noticed that <a href="https://sourceforge.net/p/iputils/code/ci/HEAD/tree/ping.c#l142" rel="noreferrer">ping uses raw sockets</a> <code>SOCK_RAW</code>, which any userspace application requires root privilege to use.
<br/></p>

<p>How do the developers of Linux distros manage to provide the ping command for non-root users ?</p>