How to enable on-access scanning using the redirfs module
FAQ » Technical FAQ » AVG 8.5 » AVG for Linux/FreeBSD » How to enable on-access scanning using the redirfs module
If you want to use the AVG 8.5 for Linux/FreeBSD on-access scanning feature, it is needed to use two kernel modules (avflt and redirfs). Please follow the steps below to install and setup these modules:
- Download redirfs and avflt packages
Packages are available here: http://www.redirfs.org - Unpack both tar.gz archives (X character stands for version number)
# tar xzvf redirfs-X.X.tar.gz
# tar xzvf avflt-X.X.tar.gz
Redirfs
- Enter the extracted redirfs directory
# cd redirfs-X.X - Run make command
# make -C /lib/modules/`uname -r`/build M=`pwd` modules - Switch to "root" account using the "su" command (if you are not logged as root already)
- Install module
# make -C /lib/modules/`uname -r`/build M=`pwd` modules_install - Load redirfs.ko module
# modprobe redirfs
Note: It may be necessary to update module dependencies before module loading. Please use the following command: # depmod -a
Avflt
- Enter the extracted avflt directory
# cd ../avflt-X.X - Copy the redirfs´s Module.symvers file to this avflt directory
# cp ../redirfs-0.6/Module.symvers ./ - Compile the module
# make -C /lib/modules/`uname -r`/build M=`pwd` EXTRA_CFLAGS=-I<path to the redirfs> modules
Note: <path to the redirfs> represents the path to the dir with source files of redirfs as extracted during the previous steps.
Example: # make -C /lib/modules/`uname -r`/build M=`pwd` EXTRA_CFLAGS=-I/root/redirfs-0.6 modules - Install module
# make -C /lib/modules/`uname -r`/build M=`pwd` EXTRA_CFLAGS=-I<path to the redirfs> modules_install
Note: "EXTRA_CFLAGS=-I<path to the redirfs>" refers to the same dir as previous command. - Load avflt.ko module
# modprobe avflt
Note: It may be necessary to update module dependencies before module loading. Please use the following command: # depmod -a
Final steps
- Change the AVG configuration
Please change Default.oad.avflt.paths.include option
Example:
# avgcfgctl -w Default.oad.avflt.paths.include="|/home|" - Start AVG
# avgctl --start
Note: In default configuration, Default.oad.use=avflt option is already set so it is not necessary to change it.
Detailed information regarding the modules installation can be found in the INSTALL file.





