OP#785 add excludepaths and option to use it

This commit is contained in:
2026-09-22 12:45:06 +02:00
parent 2d3304abac
commit 7f20c0e45e
4 changed files with 33 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ PreludeAnalyzerName ClamAV
# Log additional information about the infected file, such as its
# size and hash, together with the virus name.
#ExtendedDetectionInfo yes
ExtendedDetectionInfo yes
# This option allows you to save a process identifier of the listening
# daemon (main thread).
@@ -132,6 +132,28 @@ PreludeAnalyzerName ClamAV
#ExcludePath ^/proc/
#ExcludePath ^/sys/
<% if @cv_use_excludepaths %>
ExcludePath ^/proc
ExcludePath ^/sys
ExcludePath ^/dev
ExcludePath ^/run
ExcludePath ^/var/run
ExcludePath ^/var/tmp
ExcludePath ^/tmp
ExcludePath ^/var/lib/clamav
ExcludePath ^/var/log/clamav
ExcludePath ^/var/lib/docker
ExcludePath ^/var/lib/containerd
ExcludePath ^/var/lib/kubelet/pods
ExcludePath ^/var/lib/kubelet/plugins
ExcludePath ^/var/lib/kubelet/plugins_registry
ExcludePath ^/var/log/pods
ExcludePath ^/var/log/containers
ExcludePath ^/var/cache
ExcludePath ^/run/containerd
ExcludePath ^/run/docker
<% end %>
# Maximum depth directories are scanned at.
# Default: 15
#MaxDirectoryRecursion 20