*** Chandrashekhar B wrote:
> *** Chandrashekhar B wrote:
 
> > I'm not sure anymore. This could cause some problems if e.g. /usr is
> > mounted on an other filesystem. We would miss all under /usr then. 
> 
> These are options. One could always override by saying "yes".

Sure. But we should have the best default as possible. IMHO (but im
not sure) adding "-xdev" is _not_ the best default. 

> > My last idea was to change the find call to the following:
> 
> >find / -maxdepth 7 -mindepth 1 \( -fstype nfs -o -fstype nfs4 -o -fstype
> NFS -o -fstype proc -o -fstype afs -o -fstype smbfs -o -fstype autofs -o
> -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o
> -fstype ftpfs -o -fstype devfs -o -fstype mfs -o -fstype sysfs -o -fstype
> shfs -o -fstype cifs -o -fstype 9P -o -fstype unknown
> \) -o \( -path "*/proc" -o -path "/dev" -o -path "/sys" -o -path "/media" -o
> -path "/tmp" -o -path "/var" \) -prune -o -name <search> -a \( -type f -o
> -type l \) -print 2>/dev/null 
> 
> I am not sure. Need to test this query on all and see how it behaves.

Please do.

> > What do you think. You (SecPod) are using this function most i guess.
> > ;)
> 
> You do not want us to use?

No, that wasn't my point. My point is to optimize this function. Sure,
not using this function is some kind of optimizing... ;)

Micha

-- 
Michael Meyer                            OpenPGP Key: 52A6EFA6
http://www.greenbone.net/
Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG
Osnabrück, HR B 202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-plugins mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to