CVD-Update allows for third party databases or additional databases to
be updated with version checks performed purely through HTTP. For daily,
main, and bytecode these MUST use DNS though, to save bandwidth.
This commit adds a tamper check to make sure that updates to daily,
main, and bytecode when using database.clamav.net use DNS for the
version check.
Tested on linux and windows by setting the "DNS field" config setting to 0 and verifying that the update skipped those databases and returned a non-zero exit code.
CVD-Update allows for third party databases or additional databases to be updated with version checks performed purely through HTTP. For daily, main, and bytecode these MUST use DNS though, to save bandwidth.
This commit adds a tamper check to make sure that updates to daily, main, and bytecode when using database.clamav.net use DNS for the version check.