Re: Changing the libSAVI tmp dir ?
Martin Zuziak <[email protected]> Sat, 14 May 2005 00:59:35 +0200
| Newsgroups | gmane.comp.security.virus.vtools |
|---|---|
| Message-ID | <[email protected]> |
On Fri, May 13, 2005 at 11:26:55PM +0100, Nick Leverton wrote: > This isn't a Sophie problem really, at least I don't think so. I know > how to change Sophie's temp directory in sophie.cfg. > > However libsavi.so seems to always use /tmp for unpacking archives. > I want to change this to e.g. /var/tmp, this is because /tmp is a tmpfs > in RAM, and putting up to 300Mb of archive in there (our users download > big files!) makes it swap quite heavily and hits performance badly. > > Using 'strings' on libsavi.so suggests that it looks for TEMP in the > environment (that string is in the library), however doing "export > TEMP=/var/tmp" before calling sophie doesn't change things. Has anyone > solved this already ? If not I'll go ask Sophos, but I was hoping > someone might know. This is described in the Install.txt file from the savi distribution. It says that you can set the 'SAV temp directory' variable in sav.conf or use the environment variable SAV_TMP. But I've never tried it myself. Martin Zuziak <[email protected]>