[clamav-users] Clamonacc - exclude / include
Nick
mr.nick.hall at protonmail.com
Thu Feb 4 10:52:48 UTC 2021
Hello,
I'm looking for a bit of help with including dirs for scanning with clamonacc. Ideally I want to only scan:
/user-home-folders/*/Downloads
Where * could be any user name. However it doesn't look like I can set a regex for the OnAccessIncludePath parameter. The aim of the above is to exclude 'noisy' dirs like ~/.cache (where applications like Chrome create tons of files) from scanning. With many users I don't want all these files to impact scanning performance
If the above is not possible could I do something like the below?
OnAccessIncludePath to /user-home-folders/
ExcludePath /.local/
ExcludePath /.cache/
ExcludePath/.config/
In testing this I still see clamonacc tell me it's performing scanning on files created in .cache but will the engine itself ignore them due to the Excludes?
Is there a better way of accomplishing this?
Thanks
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20210204/aa9de756/attachment.htm>
More information about the clamav-users
mailing list