Document toolboxDocument toolbox

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:

  1. Disabling AppArmor

    1. sudo systemctl stop apparmor.service
      sudo systemctl disable apparmor.service

  2. Set AppArmor to complain instead of denying access

    1. apt-get install apparmor-utils
      aa-complain /path/to/your/scanner (e.g. /usr/sbin/clamd)

 

 Related articles