[clamav-users] clamscan not obeying the --exclude-dir directives

Adam Lininger arlininger at gmail.com
Tue Jun 14 12:33:41 UTC 2016


I run clamAV on my Mac Book (installed via clamXav). It seems to be not
entirely obeying the --exclude and --exclude-dir flags.

I have a directory (/media/binstore) which is an sshfs mount from another
server. I want to exclude scanning this directory to avoid excess network
traffic. While clamscan never reports a virus in that directory, it is
opening and reading the files in that directory. How can this be avoided?


Clamscan invocation (from ps):
/usr/local/clamXav/bin/clamscan -ri --quiet
--log=/Users/alininge/Library/Logs/clamXav-scan.log --scan-mail=no
--phishing-scan-urls=no --exclude="/opt/local/msf/"
--exclude-dir="/opt/local/msf/" --exclude="/media/" --exclude-dir="/media/"
--exclude="/media/binstore" --exclude-dir="/media/binstore"
--exclude=^/Volumes --exclude=^/dev --exclude-dir=^/Volumes
--exclude-dir=^/dev /

Thanks,
Adam Lininger



More information about the clamav-users mailing list