Rainer,

I don't think that implementing regex support for inclusions is a big ask or 
much different than the process for exclusions. I agree with your 
recommendations as well.

Respectfully,
Val

Valerie Snyder (she/they)
ClamAV Development
Talos
Cisco Systems, Inc.
________________________________
From: Dr Rainer Woitok <[email protected]>
Sent: Wednesday, July 15, 2026 12:41 PM
To: Valerie Snyder (valsnyde) <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [clamav-users] Regexps for "OnAccess*cludePath"?

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

Reply via email to