Skip to content

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

Merged
val-ms merged 2 commits intoCisco-Talos:dev/1.0.6from
val-ms:CLAM-2612-valhalla-1.0.6
Apr 15, 2024
Merged

Clam 2612 Fix DatabaseCustomURL CVD prune bug, and add 'valhalla' optional database (1.0.6)#1240
val-ms merged 2 commits intoCisco-Talos:dev/1.0.6from
val-ms:CLAM-2612-valhalla-1.0.6

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Apr 14, 2024

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

val-ms added 2 commits April 13, 2024 15:28
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.
@val-ms val-ms merged commit 296e7d1 into Cisco-Talos:dev/1.0.6 Apr 15, 2024
@val-ms val-ms 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