AppArmor prevents ClamAV from access file or directory
ContentBody{} FormattedBody{value='
🤔 Problem
Ubuntu/Linux’s AppArmor may prevent access to file or directory causing Anti-Virus scanner to throw an error.
🌱 Solution
Few ways to prevent this error:
Disabling AppArmor
sudo systemctl stop apparmor.service
sudo systemctl disable apparmor.service
Set AppArmor to complain instead of denying access
apt-get install apparmor-utils
aa-complain /path/to/your/scanner
(e.g./usr/sbin/clamd
)