From d8213d2c366633b54cfccfa9a4855f31bd10db57 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Tue, 20 Jul 2021 00:37:04 +0000 Subject: [PATCH] Sort the mounts so they are idempotent --- templates/Fedora/34/etc/clamd.d/scan.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Fedora/34/etc/clamd.d/scan.conf b/templates/Fedora/34/etc/clamd.d/scan.conf index 3dafd6a..caa610b 100644 --- a/templates/Fedora/34/etc/clamd.d/scan.conf +++ b/templates/Fedora/34/etc/clamd.d/scan.conf @@ -720,8 +720,8 @@ OnAccessPrevention yes # Default: disabled #OnAccessMountPath / #OnAccessMountPath /home/user -{% for item in ansible_mounts %} -OnAccessMountPath {{ item.mount }} +{% for item in ansible_mounts|map('mount')|sort %} +OnAccessMountPath {{ item }} {% endfor %} # With this option you can whitelist the root UID (0). Processes run under