> I've just started to use ClamAV as part of an evaluation of several =
> anti-virus products for our UNIX/Linux networks.  Our primary need is to =
> scan filesystems. The first thing I noticed was that there was no option =
> to preserve file access times, this is a problem for me, since we have =
> archive tools that make decisions based on the the access and =
> modification times of files.

This patch opens a possible race condition where a legitimate change
to the file won't result in the modification time being updated.

If the mtime or ctimei s changed after the lstat() call but before the
utime call, you lose the change.  This would be bad if your backup system
decides that the file doesn't need to be backed up or worse  can be
deleted because it is no longer in use.

It probably wouldn't even be hard to trigger the race, since scanning
of certain types of files is rather slow.

-jeaton

-- 
Jeffrey T. Eaton                    esp                      [EMAIL PROTECTED]
Research Systems Programmer                      Carnegie-Mellon University


_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to