This is how you do it
Exactly how this is done depends on your distribution and how you start the samba server. In general, you will need
to edit your samba startup script, usually called /etc/init.d/smb or /etc/init.d/samba and add the string:
LD_PRELOAD=/usr/local/f-prot/tools/f-prot.soto the beginning of the line where smbd is started. RedHat example:
In the file
/etc/init.d/smbchange the line:
daemon smbd $SMBDOPTIONSto:
LD_PRELOAD="/usr/local/f-prot/tools/f-prot.so" daemon smbd $SMBDOPTIONSSuSE example (from SuSE 8.2):
In the file
/etc/init.d/smbchange the line:
startproc -p ${PID_FILE} ${DAEMON_DIR}${BIN_SUFFIX}/${SMBD_BIN} -D -s ${SMB_CONF}to:
LD_PRELOAD=/usr/local/f-prot/tools/f-prot.so startproc -p ${PID_FILE} ${DAEMON_DIR}${BIN_SUFFIX}/${SMBD_BIN} -D -s ${SMB_CONF}Please note: You might further want to limit the scope of file scanning by setting scanning rules in /etc/f-prot.conf. See the man page for f-prot.so for detailed information regarding /etc/f-prot.conf, f-prot.so in general and its configuration options.
For SELinux users, see man page for f-prot.so for detailed description regarding the documentation and configuration in general.
< Previous | Back to Index | Next >