Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clam 2612 Fix DatabaseCustomURL CVD prune bug, and add 'valhalla' optional database (1.0.6) #1240

Merged

Conversation

micahsnyder
Copy link
Contributor

Backport of #1233


  • Freshclam: fix issue DatabaseCustomURL CVD prune issue

    If using DatabaseCustomURL to download a CVD that Freshclam doesn't know about, i.e. one that is not in the hardcoded standard or optional database lists in freshclam.c, Freshclam will prune the database and then re-download it.

    This change makes it so we look for URL's with ".cvd" at the end and then take those into consideration when checking which CVD's (or CLD's) should be pruned.

    Note that I didn't change the interface to fc_prune_database_directory(). That would have been cleaner, but would've changed the public API and I want to backport this fix.

  • Add 'valhalla' to Freshclam's list of optional CVD's

If using DatabaseCustomURL to download a CVD that Freshclam doesn't know
about, i.e. one that is not in the hardcoded standard or optional
database lists in freshclam.c, Freshclam will prune the database and
then re-download it.

This change makes it so we look for URL's with ".cvd" at the end and
then take those into consideration when checking which CVD's (or CLD's)
should be pruned.

Note that I didn't change the interface to
fc_prune_database_directory(). That would have been cleaner, but
would've changed the public API and I want to backport this fix.
@micahsnyder micahsnyder merged commit 296e7d1 into Cisco-Talos:dev/1.0.6 Apr 15, 2024
6 of 24 checks passed
@micahsnyder micahsnyder deleted the CLAM-2612-valhalla-1.0.6 branch April 15, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant