Fanotify is a file access notification system built-in to many common Linux kernels. This kernel feature allows Sophos Anti-Virus to scan files on-access and, if necessary, block access to threats. This article gives further details on the supported environments for fanotify and Sophos Anti-Virus for Linux.
Applies to the following Sophos products and versions
Sophos Anti-Virus for Linux v10.0+ (Sophos Central only)
Operating systems Linux
Note: Debian does not support fanotify.
Support for fanotify is included in Sophos Anti-Virus version 9.7.x and higher. Fanotify provides notification and interception of file system events, and can be used for on-access file scanning as an alternative to the Sophos-provided Talpa kernel interface.
Fanotify is available on 2.6.37+ kernels.
Fanotify can be set as the default kernel interface for on-access scanning, in preference to Talpa, by following these steps:
/opt/sophos-av/bin/savconfig set PreferFanotify true
If you don’t want SAV for Linux to attempt to enable fanotify automatically, run the following command:
/opt/sophos-av/bin/savconfig set DisableFanotify true
Restart SAV: /etc/init.d/sav-protect restart
Use of fanotify with Sophos Anti-Virus for Linux is fully supported for on-access scanning; however please note the following:
If you experience any unexpected behaviour or issues with fanotify, please contact Sophos support.
If you've spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article. This is invaluable to us to ensure that we continually strive to give our customers the best information possible.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. If you need technical support please post a question to our community. Alternatively for licensed products open a support ticket.