Closed (fixed)
Project:
ClamAV
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2017 at 15:16 UTC
Updated:
9 Feb 2025 at 13:19 UTC
Jump to comment: Most recent
The module may be installed on a site which has a number of existing files. As the module only scans new files, as they are uploaded, it would be useful to check the existing files and report whether any are infected.
A second use-case is regular subsequent checks, to identify infected files uploaded in the 0-day period before they could be identified by the scanner.
Add new Drush command that scans the managed files using the Drupal's Batch API.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
manarth commentedCurrent WIP against 7.x is going on in branch
feature/2919464-rescan-old-files.Comment #3
capellicHello, we are evaluating this module, prompted by Pantheon's announcement that they now support it. Would like to see this functionality and wondering if any progress has been made.
Comment #4
manarth commentedIIRC the code in that feature-branch seemed to be in a good state, and would benefit from testing + feedback. I know of a site which may be trialling the branch in the next month or so, but nothing concrete just yet. Feel free to run with it though, and if it's positively received we'll merge it to the 7.x dev branch to expose it to a wider audience and plan for a new release.
Comment #5
capellicThanks @manarth. Our evaluation has been put on pause, but I'll take a look should we move forward. Thank you for the response.
Comment #6
sokru commentedComment #8
sokru commentedI'll leave to maintainers to decide if they first want to complete the #3423633: Code modernisation.
Comment #9
sokru commentedComment #10
rosk0Needs more work. See comments in the merge request.
Comment #11
patrickharris commentedI will try and address the recent comments here.
Comment #12
patrickharris commentedComment #13
patrickharris commented$this->logger()was not working for me in the batch process, so I substituted\Drupal::logger()... I'm not sure if it is working for other people?Comment #14
rosk0Will do some more polishing myself.
Comment #15
rosk0Back to NR
Comment #16
vladimirausComment #17
jannakha commentedtested and works as required
thanks for your contributions!
Comment #18
vladimirausMerged. Thank you all.
Comment #19
vladimirausComment #20
jannakha commented