This is covered in the apparmor section of /usr/share/doc/clamav/README.Debian.gz (at the end). You should update your profile to authorize scanning where you need it to happen. See https://wiki.ubuntu.com/AppArmor and the linked pages for details. /etc/apparmor.d/usr.sbin.clamd is the profile that needs to be modified for your use case.
This is covered in the apparmor section of /usr/share/ doc/clamav/ README. Debian. gz (at the end). You should update your profile to authorize scanning where you need it to happen. See https:/ /wiki.ubuntu. com/AppArmor and the linked pages for details. /etc/apparmor. d/usr.sbin. clamd is the profile that needs to be modified for your use case.