From 42aa5529511c0a67ca2c97259f7c99f40925d277 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Mon, 9 Oct 2023 13:32:48 +0200
Subject: [PATCH] feat: update ClamAV config

---
 tasks/install_clamav.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tasks/install_clamav.yml b/tasks/install_clamav.yml
index 002f7f5..4b84472 100644
--- a/tasks/install_clamav.yml
+++ b/tasks/install_clamav.yml
@@ -111,6 +111,8 @@
       ScanMail yes
       ScanArchive yes
       ArchiveBlockEncrypted no
+      OnAccessExcludeUname root
+      OnAccessIncludePath /
   notify: restart clamd service
 
 - name: configure ClamD exclude paths
@@ -126,6 +128,8 @@
       # Exclude paths from being checked. Use 'man regex' to get more information about REGEX format (clamav uses the regex.c library).
       # Default: ExcludePath REGEX
       ExcludePath "/mnt/*"
+      # Default: disabled
+      OnAccessExcludePath "/mnt/*"
   notify:
     - restart clamav-daemon service
     - restart clamd service
-- 
GitLab