Date: Sun, 18 May 2008 11:44:26 +1000 From: Adrian Thearle <adrian@thearle.com.au> To: garga@FreeBSD.org Cc: ports@FreeBSD.org Subject: FreeBSD Port: clamav-0.93 Message-ID: <482F89FA.4090408@thearle.com.au>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------090803070501080305090702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. This is similar to the way spamass-milter does it. Cheers Adrian --------------090803070501080305090702 Content-Type: text/x-diff; name="clamav-milter.in.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="clamav-milter.in.diff" 29a30,36 > start_postcmd=start_postcmd > > start_postcmd() > { > /usr/sbin/chown ${clamav_milter_socket_owner}:${clamav_milter_socket_group} ${clamav_milter_socket} > /bin/chmod ${clamav_milter_socket_mode} ${clamav_milter_socket} > } 64a72,74 > : ${clamav_milter_socket_owner="clamav"} > : ${clamav_milter_socket_group="clamav"} > : ${clamav_milter_socket_mode="755"} --------------090803070501080305090702--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?482F89FA.4090408>