Exclude mounted network filesystems from ClamAV scans

Matt Morgan minxmertzmomo at gmail.com
Wed Jan 5 20:31:39 UTC 2005


We have a few linux desktops going in for the first time, apart from
IT people. We're running weekly scans with ClamAV on them, and we're
having difficulty figuring out how to exclude *only* the mounted
network drives from the scan. That is, we want to scan everything
locally, recursively from /, while not scanning any mounted network
volumes.

We can figure out how to exclude files/directories based on their
names; the problem is that we're using pam_mount to mount each user's
network shares dynamically upon logon, so we don't know what shares
may or may not be mounted at any given time and thus can't specify
them ahead of time. Rather, we need something like find's "-xdev"
option, that tells find not to descend directories on other
filesystems. Is there such a thing in ClamAV? Or is there some other
way to accomplish the same thing?

Thanks,
Matt




More information about the fedora-list mailing list