Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2008 14:43:53 -0300
From:      Renato Botelho <garga@FreeBSD.org>
To:        Adrian Thearle <adrian@thearle.com.au>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: clamav-0.93
Message-ID:  <20080520174353.GA28040@bluepex.com>
In-Reply-To: <482F89FA.4090408@thearle.com.au>
References:  <482F89FA.4090408@thearle.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 18, 2008 at 11:44:26AM +1000, Adrian Thearle wrote:
> Hi
> 
> I have made a change to the clamav-milter startup script that helps with 
> permissions on the socket.
> I use postfix, not sure of sendmails requirements, but the socket needs to 
> be writeable by the postfix user. The attached patch adds three variables 
> that can be used to change the permissions and owner of the socket. I 
> checked for this functionality within clam itself, but could not find an 
> option.

Hi,

Clamav has 2 options that you can set on your /etc/make.conf:

CLAMAVUSER
CLAMAVGROUP

You can safely set this to postfix user and group, and after this, socket
and all other things needed will have the correct permissions.

I will commit part of the change you proposed to clamav's port, the mode
option, that is already present in clamav-devel port.

After this commit, if you don't want to install clamav with postfix user,
you can install with clamav user and group, change socket mode to group
writeable and add postfix user to clamav's group.

Regards
-- 
Renato Botelho <garga @ FreeBSD.org>
               <garga @ freebsdbrasil.com.br>
GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc

186,000 miles per second:
It isn't just a good idea, it's the law!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080520174353.GA28040>