[Mono-list] socket.raw as root

Dick Porter dick@ximian.com
18 Jun 2004 18:24:00 +0100


On Fri, 2004-06-18 at 17:30, Eric Gonia wrote:
> Would someone please explain to me why I have to be root in order to
> create a raw socket:
> 
> Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw,
> ProtocolType.Icmp);

Because the linux kernel enforces that.

> And is there a way to get around the root privilege requirement for raw
> sockets?

You've got the kernel sources...

- Dick