[Aide] Experimenting with exclusion rules

Andreas Hasenack andreas at canonical.com
Fri Dec 18 18:55:48 EET 2020


Hello,

On Fri, Dec 18, 2020 at 1:17 PM Hannes von Haugwitz
<hannes at vonhaugwitz.com> wrote:
>
> Hello,
>
> On Wed, Dec 16, 2020 at 04:28:09PM -0300, Andreas Hasenack wrote:
> > Why did the exclusion regexp "!/check/ignore$" ignore the new file
> > /check/ignore/andreas-was-here? Shouldn't it match just
> > "/check/ignore" exactly? What am I missing?
>
> This is expected behaviour, as children of directories matching negative
> selection lines are also ignored. I adjusted the description for
> negative selection lines in aide.conf.5 as follows in 5fd96b2[0]:

--- a/doc/aide.conf.5.in
+++ b/doc/aide.conf.5.in
@@ -300,7 +300,7 @@ Negative selection line:
 .fi

 Files and directories matching the regular expression are ignored and not added
-to the database.
+to the database. The children of matching directories are also ignored.

 .RE

Thanks for the explanation!

> PS.: Please refrain from opening issues at github.com[1] when you asked
> the very same question here on the AIDE mailing list 2 days ago.
>
> [0] https://github.com/aide/aide/commit/5fd96b2fab486264799415ebd818b02ad83dc276
> [1] https://github.com/aide/aide/issues/82

Apologies, I truly thought the behavior was a bug.

Thanks for your reply and the doc commit.


More information about the Aide mailing list