Creating an ICMP packet requires a raw socket, and creating raw sockets requires root privileges. The check is not being made by the module.
Since privileges are process-based in unix, you need to elevate the privileges of your entire process (using setuid , sudo or whatever), or delegate the pinging to a program that runs with elevated privileges (such as the preexisting ping command, which uses setuid to run as root).
In reply to Re: icmp ping requires root privilege only?
by ikegami
in thread icmp ping requires root privilege only?
by raybies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |