Re: Regexps for "OnAccess*cludePath"?

Dr Rainer Woitok via clamav-users <[email protected]> Wed, 15 Jul 2026 18:41:32 +0200
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <[email protected]>
Valerie,

On Tuesday, 2026-07-14 16:53:12 +0000, you wrote:

> ...
> The pull request you linked was merged prior to 1.5, but it only includes regex
> support for OnAccessExcludePath and not OnAccessIncludePath.

Hm,  is implementing regex support  really THAT different for exclusions
and inclusions?  Isn't it just: a file will be checked, if it is matched
by at least one include regex and by none of the exclude regexps?

> ...
>                                                                  Swapping
> OnAccessExcludePath to be a regex directly was a risky maneuver considering
> strings like ".cache" change meaning, and should really be "\.cache".

Yes,  but I think everybody could live with options "OnAccess*cludePath"
and "OnAccess*cludeRegex"  and then for consistency's sake  perhaps even
"ExcludePath" and "ExcludeRegex", where you have the same problem.

> Anyways, I'm sorry this is probably not the response you were hoping for.

Never mind, its a want-have rather than a must-have :-)

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