[clamav-users] On Access Scanning: Exclude files starting with a "."

Micah Snyder (micasnyd) micasnyd at cisco.com
Thu Jul 19 15:48:21 EDT 2018


The exclude path requires actual file or directory names.  The glob (asterisk) won't work.  You will have to list an ExcludePath line for each directory or file you don't want to scan.


Micah Snyder
ClamAV Development
Cisco Systems, Inc.

On Jul 18, 2018, at 7:47 AM, Kretschmer, Jens <kretschmer.jens at siemens.com<mailto:kretschmer.jens at siemens.com>> wrote:


is it possible to exclude files and folders starting with a “.” when using on access scanning? We use the following configuration for on access scanning:

ScanOnAccess yes
OnAccessIncludePath /home/user1
OnAccessIncludePath /home/user2
OnAccessExtraScanning yes

I have tried the following configurations:

ExcludePath ^/home/user1/\.*
ExcludePath ^/home/user1/\..*
ExcludePath ^/home/user1/\.

(and many more that I don’t remember) but they did not work. Even

ExcludePath .*

does not work, so I might be doing something else wrong.

By the way, is it possible to hide the messages

Jul 18 13:32:54 <redacted> clamd[7249]: ScanOnAccess: Performing additional scanning on file '/home/user1/.test11'

when OnAccessExtraScanning is enabled?

Best regards,

clamav-users mailing list
clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>

Help us build a comprehensive ClamAV guide:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20180719/b74a51d2/attachment.html>

More information about the clamav-users mailing list