ports/57379: [FIX] security/clamav 0.60

Oliver Eikemeier eikemeier at fillmore-labs.com
Tue Sep 30 18:20:18 UTC 2003


The following reply was made to PR ports/57379; it has been noted by GNATS.

From: Oliver Eikemeier <eikemeier at fillmore-labs.com>
To: freebsd-gnats-submit at FreeBSD.org, martin at tradex.sk
Cc:  
Subject: Re: ports/57379: [FIX] security/clamav 0.60
Date: Tue, 30 Sep 2003 20:11:20 +0200

 martin at tradex.sk wrote:
 
 >  Try the following:
 >  
 >  Start clamd via rc_subr startup script. Kill the process with -9 signal (may
 >  happen), the socket file is not deleted. Now try to start it again.
 >  The process is NOT started because of existing socket file.
 
 But then you already had a problem (clamd was terminated by sigkill),
 and you should have a hint to investigate. I would prefer:
 
 start_precmd=start_precmd
 
 start_precmd()
 {
 	if [ -S "%%CLAMD_SOCKET%%" ]; then
 		warn "Stale socket %%CLAMD_SOCKET%% removed."
 		rm "%%CLAMD_SOCKET%%
 	fi
 }
 
 or, even better:
 
 start_precmd=start_precmd
 
 start_precmd()
 {
 	if [ -S "%%CLAMD_SOCKET%%" ]; then
 		warn "Stale socket %%CLAMD_SOCKET%%, clamd may already be running."
 		return 1
 	fi
 }
 
 



More information about the freebsd-ports-bugs mailing list