Skip to content

Commit

Permalink
fix(STONEINTG-1074): set the option max file size to 2000M as in doc
Browse files Browse the repository at this point in the history
Signed-off-by: Kasem Alem <[email protected]>
  • Loading branch information
Kasem Alem committed Dec 11, 2024
1 parent 7989f27 commit 3ed1241
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions task/clamav-scan/0.2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ The logs will provide both the version of ClamAV and the version of the database
On this version the sidecard is removed from the task and required tools (jq, oc ..) were added to the Clamav BD container image
this should fix the problem of timing out when task is scanning the database and improve the performance.

## --max-filesize:
Is set to the same value as the default value according to the ClamAV official Documentation.

https://wiki.debian.org/ClamAV

https://docs.clamav.net/manual/Development/tips-and-tricks.html?highlight=max-filesize#general-debugging

## Params:

| name | description | default |
Expand Down
2 changes: 1 addition & 1 deletion task/clamav-scan/0.2/clamav-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
db_version=$(clamscan --version | sed 's|.*/\(.*\)/.*|\1|')
echo "Scanning image for arch $arch. This operation may take a while."
clamscan $destination -ri --max-scansize=4095M --max-filesize=4095M \
clamscan $destination -ri --max-scansize=4095M --max-filesize=2000M \
--max-scantime=0 --max-files=0 --max-recursion=1000 --max-dir-recursion=20000 --max-embeddedpe=4095M \
--max-htmlnormalize=10M --max-htmlnotags=4095M --max-scriptnormalize=5M --max-ziptypercg=4095M \
--max-partitions=50000 --max-iconspe=100000 --max-rechwp3=20000 --pcre-match-limit=100000000 --pcre-recmatch-limit=2000000 \
Expand Down

0 comments on commit 3ed1241

Please sign in to comment.