Update of /export/home/ntop/ntop
In directory jabber:/tmp/cvs-serv24273

Modified Files:
        webInterface.c util.c 
Log Message:

Add tests before ntop has shed privledges to ensure that the external tools,
nmap and lsof will work later on.  This code explicitly tests whether the 
tools are suid root.

If they can't be found or aren't suid root, then ntop will override the users'
selection.

Log messages are printed

Error codes are:

 010 -- Catastrophic popen() error (running tool)...
-120 -- tool won't run -- not installed, not in path, etc.
 030 -- Catastrophic popen() error (doing which)...
 040 -- which tool didn't return anything
-15x -- stat() on tool failed.  Shouldn't happen.  Last #s are man stat code
 060 -- tool exists but is not rx for other users
 070 -- tool exists but is not suid root

Realistically, only -120 and 060/070 should ever be seen. 

-----Burton (ref 169)



_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to