I am not sure if this applies in your case, but there are privileged
sockets (0-1023) and non-privileged sockets (1024-65536).  If this is
not your problem, then it may be an issue that raw sockets bypass the
standard protocols and can be used for nefarious purposes.  I am sure
about the first statement, the second is just a guess.

J. Edward Ellis

Pacific Northwest National Laboratory
(509) 375-3627 voice
(509) 375-2379 FAX
mailto:[EMAIL PROTECTED] 



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Gonia
Sent: Friday, June 18, 2004 9:30 AM
To: [EMAIL PROTECTED]
Subject: [Mono-list] socket.raw as root

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);

but I can create a Stream socket as a normal user:

Socket socket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);


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

Thanks,
Eric


_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to