Tips

In order to activate the On-access scanner immediately after file system start up, the ‘LD_PRELOAD’ environment variable must be defined within the appropriate network file server initialization script.

Example: Let’s assume we want to have the On-access scanner to monitor all file system access 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:

LD_PRELOAD=@LIBDIR@/libesets_pac.so daemon /usr/sbin/smbd $SMBDOPTIONS

In this way, selected file system objects controlled by Samba will be scanned at system start-up.