Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

Config ignores. #56

Description

@GAS85

Hey, thanks a lot for a cool package.
I have an issue, I use docker compose:

  clamav:
    image: "quay.io/ukhomeofficedigital/clamav:latest"
    container_name: "clamav"
    ports:
      - "9006:3310"
    restart: unless-stopped
    environment:
      - CLAMD_SETTINGS_CSV=MaxFileSize=300M,LogVerbose=yes,PCREMaxFileSize=50M,StreamMaxLength=50M
      - FRESHCLAM_SETTINGS_CSV=LogVerbose=yes

I can see that config file was updated:

# docker exec clamav cat /etc/clamav/clamd.conf
LogFile /dev/stdout
LogTime yes
LogClean yes
LogSyslog no
DatabaseDirectory /var/lib/clamav
LocalSocket /var/run/clamav/clamd.socket
TCPSocket 3310
Foreground yes
MaxFileSize 300M
LogVerbose yes
PCREMaxFileSize 50M
StreamMaxLength 50M

But I can't see Verbosed logs and Stream Max Length was not applied, so that I have an error with nextcloud... Indeed PCREMaxFileSize and MaxFileSize are correct. Here is some logs output.

Thu Apr 16 12:32:37 2020 -> *Current working dir is /var/lib/clamav/,
Thu Apr 16 12:32:37 2020 -> *Querying current.cvd.clamav.net,
Thu Apr 16 12:32:37 2020 -> +++ Started at Thu Apr 16 12:32:37 2020,
Thu Apr 16 12:32:37 2020 -> Received 0 file descriptor(s) from systemd.,
Thu Apr 16 12:32:37 2020 -> clamd daemon 0.102.1 (OS: linux-musl, ARCH: x86_64, CPU: x86_64),
Thu Apr 16 12:32:37 2020 -> Log file size limited to 1048576 bytes.,
Thu Apr 16 12:32:37 2020 -> Reading databases from /var/lib/clamav,
Thu Apr 16 12:32:37 2020 -> Not loading PUA signatures.,
Thu Apr 16 12:32:37 2020 -> Bytecode: Security mode set to "TrustSigned".,
Thu Apr 16 12:32:37 2020 -> *TTL: 697,
Thu Apr 16 12:32:37 2020 -> *fc_dns_query_update_info: Software version from DNS: 0.102.2,
Thu Apr 16 12:32:37 2020 -> ^Your ClamAV installation is OUTDATED!,
Thu Apr 16 12:32:37 2020 -> ^Local version: 0.102.1 Recommended version: 0.102.2,
Thu Apr 16 12:32:37 2020 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav,
Thu Apr 16 12:32:37 2020 -> *Current working dir is /var/lib/clamav/,
Thu Apr 16 12:32:37 2020 -> *check_for_new_database_version: Local copy of daily found: daily.cld.,
Thu Apr 16 12:32:37 2020 -> *query_remote_database_version: daily.cvd version from DNS: 25784,
Thu Apr 16 12:32:37 2020 -> daily.cld database is up to date (version: 25784, sigs: 2267600, f-level: 63, builder: raynman),
Thu Apr 16 12:32:37 2020 -> *fc_update_database: daily.cld already up-to-date.,
Thu Apr 16 12:32:37 2020 -> *Current working dir is /var/lib/clamav/,
Thu Apr 16 12:32:37 2020 -> *check_for_new_database_version: Local copy of main found: main.cvd.,
Thu Apr 16 12:32:37 2020 -> *query_remote_database_version: main.cvd version from DNS: 59,
Thu Apr 16 12:32:37 2020 -> main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr),
Thu Apr 16 12:32:37 2020 -> *fc_update_database: main.cvd already up-to-date.,
Thu Apr 16 12:32:37 2020 -> *Current working dir is /var/lib/clamav/,
Thu Apr 16 12:32:37 2020 -> *check_for_new_database_version: Local copy of bytecode found: bytecode.cvd.,
Thu Apr 16 12:32:37 2020 -> *query_remote_database_version: bytecode.cvd version from DNS: 331,
Thu Apr 16 12:32:37 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg),
Thu Apr 16 12:32:37 2020 -> *fc_update_database: bytecode.cvd already up-to-date.,
Thu Apr 16 12:32:47 2020 -> Loaded 6822011 signatures.,
Thu Apr 16 12:32:50 2020 -> TCP: Bound to [0.0.0.0]:3310,
Thu Apr 16 12:32:50 2020 -> TCP: Setting connection queue length to 200,
Thu Apr 16 12:32:50 2020 -> LOCAL: Unix socket file /var/run/clamav/clamd.socket,
Thu Apr 16 12:32:50 2020 -> LOCAL: Setting connection queue length to 200,
Thu Apr 16 12:32:50 2020 -> Limits: Global time limit set to 120000 milliseconds.,
Thu Apr 16 12:32:50 2020 -> Limits: Global time limit set to 120000 milliseconds.,
Thu Apr 16 12:32:50 2020 -> Limits: Global size limit set to 104857600 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: Global size limit set to 104857600 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: File size limit set to 314572800 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: File size limit set to 314572800 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: Recursion level limit set to 16.,
Thu Apr 16 12:32:50 2020 -> Limits: Recursion level limit set to 16.,
Thu Apr 16 12:32:50 2020 -> Limits: Files limit set to 10000.,
Thu Apr 16 12:32:50 2020 -> Limits: Files limit set to 10000.,
Thu Apr 16 12:32:50 2020 -> Limits: Core-dump limit is 18446744073709551615.,
Thu Apr 16 12:32:50 2020 -> *Limits: Core-dump limit is 18446744073709551615.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxEmbeddedPE limit set to 10485760 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxEmbeddedPE limit set to 10485760 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxHTMLNormalize limit set to 10485760 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxHTMLNormalize limit set to 10485760 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxHTMLNoTags limit set to 2097152 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxHTMLNoTags limit set to 2097152 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxScriptNormalize limit set to 5242880 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxScriptNormalize limit set to 5242880 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxZipTypeRcg limit set to 1048576 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxZipTypeRcg limit set to 1048576 bytes.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxPartitions limit set to 50.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxPartitions limit set to 50.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxIconsPE limit set to 100.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxIconsPE limit set to 100.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxRecHWP3 limit set to 16.,
Thu Apr 16 12:32:50 2020 -> Limits: MaxRecHWP3 limit set to 16.,
Thu Apr 16 12:32:50 2020 -> Limits: PCREMatchLimit limit set to 100000.,
Thu Apr 16 12:32:50 2020 -> Limits: PCREMatchLimit limit set to 100000.,
Thu Apr 16 12:32:50 2020 -> Limits: PCRERecMatchLimit limit set to 2000.,
Thu Apr 16 12:32:50 2020 -> Limits: PCRERecMatchLimit limit set to 2000.,
Thu Apr 16 12:32:50 2020 -> Limits: PCREMaxFileSize limit set to 52428800.,
Thu Apr 16 12:32:50 2020 -> Limits: PCREMaxFileSize limit set to 52428800.,
Thu Apr 16 12:32:50 2020 -> Archive support enabled.,
Thu Apr 16 12:32:50 2020 -> Archive support enabled.,
Thu Apr 16 12:32:50 2020 -> AlertExceedsMax heuristic detection disabled.,
Thu Apr 16 12:32:50 2020 -> AlertExceedsMax heuristic detection disabled.,
Thu Apr 16 12:32:50 2020 -> Heuristic alerts enabled.,
Thu Apr 16 12:32:50 2020 -> Heuristic alerts enabled.,
Thu Apr 16 12:32:50 2020 -> Portable Executable support enabled.,
Thu Apr 16 12:32:50 2020 -> Portable Executable support enabled.,
Thu Apr 16 12:32:50 2020 -> ELF support enabled.,
Thu Apr 16 12:32:50 2020 -> ELF support enabled.,
Thu Apr 16 12:32:50 2020 -> Mail files support enabled.,
Thu Apr 16 12:32:50 2020 -> Mail files support enabled.,
Thu Apr 16 12:32:50 2020 -> OLE2 support enabled.,
Thu Apr 16 12:32:50 2020 -> OLE2 support enabled.,
Thu Apr 16 12:32:50 2020 -> PDF support enabled.,
Thu Apr 16 12:32:50 2020 -> PDF support enabled.,
Thu Apr 16 12:32:50 2020 -> SWF support enabled.,
Thu Apr 16 12:32:50 2020 -> SWF support enabled.,
Thu Apr 16 12:32:50 2020 -> HTML support enabled.,
Thu Apr 16 12:32:50 2020 -> HTML support enabled.,
Thu Apr 16 12:32:50 2020 -> XMLDOCS support enabled.,
Thu Apr 16 12:32:50 2020 -> XMLDOCS support enabled.,
Thu Apr 16 12:32:50 2020 -> HWP3 support enabled.,
Thu Apr 16 12:32:50 2020 -> HWP3 support enabled.,
Thu Apr 16 12:32:50 2020 -> Self checking every 600 seconds.,
Thu Apr 16 12:32:50 2020 -> Self checking every 600 seconds.,
Thu Apr 16 12:32:50 2020 -> Listening daemon: PID: 20,
Thu Apr 16 12:32:50 2020 -> *Listening daemon: PID: 20,
Thu Apr 16 12:32:50 2020 -> MaxQueue set to: 100,
Thu Apr 16 12:32:50 2020 -> *MaxQueue set to: 100,
Thu Apr 16 12:32:50 2020 -> Set stacksize to 1048576,
Thu Apr 16 12:32:50 2020 -> Set stacksize to 1048576,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions