[osiris-devel] Re: Hunting down lstat "bug" in scanner

Douglas K. Fischer fischerdk at fidoki.com
Wed Sep 14 11:59:05 EDT 2005


Brian Wotring wrote:

>It's possible there is a buffer problem. The scanner makes use of 
>opendir() and readdir(). However, when the scanner encounters root-only 
>readable files, the privsep module opens the file, passes down the file 
>descriptor, and the scanner then makes use of getdirentries() or 
>getdents(), depending upon which one it has.
>  
>
Hmm... well we can narrow down a little more. From looking at the logs
of all the systems I'm getting these errors on, all of the errors
involve root-only perms, so the privsep module is used for all of them.
So, all of the errors involve privsep, but only a small subset of
privsep-using requests result in the errors. I hadn't delved into the
privsep code yet, so that'll be my next area to look at.

>The scanner tries to use getdirentries() first, then resorts to 
>getdents(). Check your config.h and verify that HAVE_GETDIRENTRIES is 
>defined.
>  
>
Yup.

>Are these 64 bit systems?
>  
>
No.

Doug



More information about the osiris-devel mailing list