M O N I T O R
67
67
67
67
Monitor. The monitor processes the file and transfers its name to the
daemon process, which checks for viruses in the file. If the file is not
infected, the Daemon returns the appropriate code to the Monitor, which
informs the anti-virus module that a permission to work with this file is
granted. If the file is infected, the daemon process returns the error code
and the Monitor disables the anti-virus module from working with the file.
The file is handled by the daemon process following the predefined
settings. As you see, there is a chain of interconnected programs, every
component of which cannot perform its functions without the others.
The klmon anti-virus module and Monitor are supplied as a source code
and therefore must be assembled before you are able to launch them.
After installation (see chapter 2) the Monitor source codes and the
/module.freebsd
subdirectory with the anti-virus modules source codes are
located in the
/kavmonitor
directory.
#"
Only the administrator (the
root
user) is authorized to assemble and
install the anti-virus module.
$"
To assemble the anti-virus module and install the Monitor
program, follow these steps:
1. Go to the directory with the anti-virus module source codes
using the command
cd
. For example,
cd /usr/local/share/AVP/monitor/modile.freebsd
2. Assemble the module using the command
make
. The assembly
process will be displayed on your screen.
#"
The kernel module must be assembled in the FreeBSD operating
system where it is supposed to be run.
!"
Note that the anti-virus module version must correspond to the
kernel version, since the use of an inappropriate module may
damage the system. To display the version number of your FreeBSD
kernel, type the string
uname –a
in the command line. If you updated
the kernel of your FreeBSD operating system, you must also
reassemble the anti-virus module.
3. For the operating system to automatically launch the module,
add a file containing the string
insmod <file_name>
(where
<file_name>
is the full path to the module executable file) to the