File: netselect.README.Debian

package info (click to toggle)
netselect 0.3.ds1-30.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 340 kB
  • sloc: ansic: 1,082; sh: 629; makefile: 43
file content (38 lines) | stat: -rw-r--r-- 1,336 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
netselect for Debian
====================

running netselect without setuid root
-------------------------------------

Netselect needs to run as root since it currently uses RAW sockets for
it network tests. In UDP probe mode (traceroute) Netselect will 
send an UDP probe and then waits for an ICMP reply. In ICMP probe mode (-I),
Netselect will send an ICMP probe and waits for its reply.

If you want to to run netselect without setuid root and make the tool
available to regular uses, you can enable this through the use of file
capabilities on Linux.

Starting with linux >= 2.6.24 and using a filesystem supporting POSIX extended
attributes you can set the 'cap_net_raw' capability on netselect thanks to
setcap shipped inside libcap2-bin:

setcap cap_net_raw=ep /usr/bin/netselect

at this point you can remove setuid on netselect by doing:

chmod u-s /usr/bin/netselect

This is a known limitation, so please do not report it as a bug. Actually, this
has been reported already in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297439

To prevent this need netselect would need a rewrite to use full TCP
connections, and do traceroutes just like the 'tcptraceroute' program. If you
are able to develop such a patch, please forward it to the above bug report.

---- 
Javier Fernandez-Sanguino
Wed, 01 Dec 2010 00:30:17 +0100