closedandexecutedlesarescannedbytheESETSdaemonforviruses.Basedontheresultof
suchscans,accesstogivenlesisdeniedorallowed.
5.3.2. Installation and configuration
The libesets_pac.so library module is installed using a standard installation mechanism of
thepreloadedlibraries.Onehasjusttodenetheenvironmentvariable‘LD_PRELOAD‘withthe
absolute path to the libesets_pac.so library. For more information, please refer to the ld.so(8)
man page.
NOTE: Itisimportantthatthe‘LD_PRELOAD‘environmentvariableisdenedonlyforthenetwork
server daemon processes (ftp, Samba, etc.) that will be under control of the On-access scanner.
Generally, preloading LIBC calls for all operating system processes is not recommended, as this
can dramatically slow the performance of the system or even cause the system to hang. In this
sense,the‘/etc/ld.so.preload‘leshouldnotbeused,norshouldthe‘LD_PRELOAD‘environment
variable be exported globally. Both would override all relevant LIBC calls, which could lead to
system hang-up during initialization.
To ensure that only relevant le access calls within a given le system are intercepted,
executable statements can be overridden using the following line:
LD_PRELOAD=/path/to/libesets_pac.so COMMAND COMMAND-ARGUMENTS
where ‘COMMAND COMMAND-ARGUMENTS‘ is the original executable statement.
Reviewandeditthe[global]and[pac]sectionsoftheESETScongurationle(esets.cfg).In
orderfortheOn-accessscannertofunctioncorrectly,youmustdenethelesystemobjects
(i.e.directoriesandles)thatarerequiredtobeundercontrolofthepreloadlibrary.Thiscanbe
achievedbydeningtheparametersofthe‘ctl_incl‘and‘ctl_excl‘optionsinthe[pac]section
oftheesets.cfgcongurationle.Aftermakingchangestotheesets.cfgle,youcanforcethe
newly created configuration to be re-read by reloading the ESETS daemon.
5.3.3. Tips
In order to activate the On-access scanner immediately after le system start-up, the ‘LD_
PRELOAD‘ environment variable must be dened within the appropriate network le server
initialization script.
EXAMPLE:Let‘sassumewewanttohavetheOn-accessscannertomonitoralllesystemaccess
events immediately after starting the Samba server. Within the Samba daemon initialization
script (/etc/init.d/smb), we would replace the statement
daemon /usr/sbin/smbd $SMBDOPTIONS
with the following line, which is responsible for initialization of the smbd daemon:
LD_PRELOAD=/path/to/libesets_pac.so daemon /usr/sbin/smbd $SMBDOPTIONS
Inthisway,selectedlesystemobjectscontrolledbySambawillbescannedatsystemstart-
up.
chapter 5 Integration with File System services