Regexps for "OnAccess*cludePath"?

Dr Rainer Woitok via clamav-users <[email protected]> Mon, 13 Jul 2026 21:57:13 +0200
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <[email protected]>
Greetings,

do the values  for configuration variables  "OnAccess*cludePath"  really
have to be absolute paths?  Searching the Internet I find

   https://github.com/Cisco-Talos/clamav/issues/1074
   https://github.com/Cisco-Talos/clamav/issues/178
   https://github.com/Cisco-Talos/clamav/pull/1314

which all suggest that allowing regexps  was at least discussed in 2024.
But neither the documentation at

   https://docs.clamav.net/manual/OnAccess.html

nor my local Clamav 1.5.2 file  "/etc/clamav/clamd.conf.sample" contains
any indication  that regular expressions  are supported  (in contrast to
configuration variable "ExcludePath").  Have these pull requests been a-
bandoned?  And if yes why?

I hesitate to configure

   OnAccessIncludePath /home

because I'm afraid this could cause massive delays.  I would rather only
specify files which really are retrieved from the Internet, as in

   OnAccessIncludePath /home/.+/Downloads
   OnAccessIncludePath /home/.+/.cache/mozilla/firefox/.+/cache2/entries

Is there a way to achieve this?

Sincerely,
  Rainer
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat