$RodHat_/search
capabilities reference

CAP_NET_RAW

Use RAW and PACKET sockets; bind to any address for transparent proxying.

Bit number
13
Mask in /proc/PID/status
0000000000002000
Added in Linux
Original 2.2 set
Group
Network

Needed for packet capture, custom ICMP and hand-built packets. ping no longer has to be setuid or carry this capability: the net.ipv4.ping_group_range sysctl lets unprivileged users open ICMP echo sockets. A service that never crafts packets should not hold it.

Narrower option: net.ipv4.ping_group_range lets unprivileged processes send ICMP echo without raw sockets.

Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.

Sources

  1. capabilities(7), Linux man-pages
  2. user_namespaces(7), Linux man-pages

Bit numbers are from linux/capability.h. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.