ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0019401ClearOSapp-file-scan - Antimalware File Scanpublic2018-03-21 05:242019-11-23 05:02
ReporterNickH 
Assigned ToNickH 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Product Version7.4.0 
Target VersionFixed in Version 
Summary0019401: Add option to exclude file types from daily scan
DescriptionCurrently the file scanner app scans all files and folders within the selected locations. Many file types are considered harmless such as jpg's and could be excluded from daily scans. As an example my IP security camera produces some 3800 jpg's yesterday and I keep a few days of history. A full scan including these takes over 2h.

It would be trivial to read in parameters exclude= and exclude-dir= from /etc/clearos/file_scan.conf by adding these lines to /use/sbin/file_scan:

            elseif ($param == 'exclude')
                $clam_scan_options .= " --$param=$value";
            elseif ($param == 'exclude-dir')
                $clam_scan_options .= " --$param=$value";

after the lines:

            elseif ($param == 'max-scansize')
                $clam_scan_options .= " --$param=$value";

This can be documented in the help text as the max-scansize and max-filesize are at the moment.

Longer term this could be the precursor to adding the parameters to the Webconfig.

Note that clamscan allows these parameters to be repeated multiple times, but we don't necessarily need to to start with as a regex such as --exclude="\.(jpg|jpeg|png|gif|mkv)$" can cover multiple file types.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0012401)
NickH (developer)
2019-11-23 05:01

Migrated to https://gitlab.com/clearos/clearfoundation/app-file-scan/issues/1 [^]

- Issue History
Date Modified Username Field Change
2018-03-21 05:24 NickH New Issue
2018-03-21 08:01 user2 Status new => confirmed
2019-11-23 05:02 NickH Note Added: 0012401
2019-11-23 05:02 NickH Status confirmed => closed
2019-11-23 05:02 NickH Assigned To => NickH
2019-11-23 05:02 NickH Resolution open => suspended