<div dir="ltr">Hi all,<div><br></div><div>I need to do the following:</div><div><br></div><div>/dir NORMAL  <--------- include /dir and all its recursive subdirectories/files</div><div>!/dir/sub <------------- *exclude* this one specific subdirectory<br>/dir/sub/file <------------- but *include* this one file in the above-excluded subdirectory</div><div><br></div><div>Unfortunately configuring aide.conf as above does not achieve the results I desire. The negative selection line supersedes the single-file inclusion line below it. This is with AIDE version 0.15.1.<br><br>I've found some other discussions about this (<a href="https://www.ipi.fi/pipermail/aide/2015-November/001504.html">https://www.ipi.fi/pipermail/aide/2015-November/001504.html</a>) but I can't seem to get it working with PCREs in AIDE either (negative lookahead?).<br><br>Even doing something like:</div><div>!

/dir/sub/[^f]</div><div><br>to try to include only files starting with "f" works, but the *directory* itself is then still included, which is no good.</div><div><br></div><div>Goal is: to recursively include all subdirectories, exclude one directory, but *include* a specific file only from the excluded subdirectory.</div><div><br></div><div>Any suggestions/help here? Would be much appreciated!</div><div><br></div><div>Thanks,</div><div>LN</div></div>