pechkov - 2006-03-31

Logged In: YES
user_id=1227021

Hi andy,

Thanks for the bug report! The current '/' vs. '\' in the
current version is a mess, and since so many checks are done
in different places, it's very troublesome to check them
all. Your bugfix was just what I needed to go on and fix
this in the current version (labrador 1.0 does not have this
issue thanks to better design).

As of the placement of the ignore commands, this is actually
a feature. Labrador scans the rules file in sequence (e.g.
it does not parse it into a big rule structure like AIDE). I
chose this approach so I could make a recursive rule with
exceptions. For example, if I wanted to check the MD5 of
"\windows" and all it's subdirectories (except "system32"),
and "\windows\system32" for Whirlpool, I could do something
like this:

----------------------
<whirlpool>
\windows\system32\ -r
</whirlpool>

\windows\system32\ ! # from now on, ignore this folder
# in further rules.

<md5>
\windows\ -r # won't scan \windows\system32 again
</md5>
----------------------

See what I mean?

As such, there's no point adding ignore commands on the
bottom of the rules file (as there will be no other rule for
them to match). But this doesn't mean that all ignore rules
need to be placed together, it only means that they need to
be placed before the rule that you want to be changed by the
ignore command.

Either way, I'm increasing the test suite of Labrador for
Windows before I release 0.8.2, so problems like yours will
(hopefully) be reduced to a minimum.

Thanks again!