ClamAV conflicts with AppArmor

Nov 12, 2025
64
6
8
There are dozen of entries in syslog like this:

Code:
2026-11-13T10:57:30.054103+01:00 mailgw kernel: audit: type=1400 audit(1794563850.052:46216): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/clamd" name="/var/spool/pmg/active/1014436AF6DF09E99DA" pid=606154 comm="clamd" requested_mask="r" denied_mask="r" fsuid=107 ouid=988

Looks like the installed AppArmor-profile needs to be tweaked a bit. Should I report an issue for that?
Thanks!
 
Those denials look like clamd trying to read the mail files in /var/spool/pmg/active, so the profile just doesn't cover that path. Does virus scanning still work for you or is it only log noise? I'd report it either way.
 
Hi, I have no idea if it works at all. There are no visible error messages or something in the web-ui. Still, the counter of detected viruses is zero since I installed it. So, yes, probably the scanner never worked.
 
Easy way to check whether it works, send an EICAR test file through the gateway and see if the virus counter goes up. If it doesn't, the scanner is broken, not just noisy.