From owner-cvs-ports@FreeBSD.ORG Tue May 25 03:18:03 2004 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 139F416A4CE; Tue, 25 May 2004 03:18:03 -0700 (PDT) Received: from fillmore.dyndns.org (port-212-202-49-130.reverse.qsc.de [212.202.49.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFC0343D3F; Tue, 25 May 2004 03:18:02 -0700 (PDT) (envelope-from eikemeier@fillmore-labs.com) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.34; FreeBSD) id 1BSZ0F-0009Wn-Cn; Tue, 25 May 2004 12:17:48 +0200 Message-ID: <40B31D4A.5080607@fillmore-labs.com> Date: Tue, 25 May 2004 12:17:46 +0200 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: rob@debank.tv References: <200405242302.i4ON2NcJ063759@repoman.freebsd.org> <52001.193.79.18.58.1085477488.squirrel@debank.tv> <40B3167F.8060509@fillmore-labs.com> <50813.193.79.18.58.1085479430.squirrel@debank.tv> In-Reply-To: <50813.193.79.18.58.1085479430.squirrel@debank.tv> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: cvs-ports@freebsd.org cc: Pav Lucistnik cc: Hajimu UMEMOTO cc: ports-committers@freebsd.org Subject: Re: cvs commit: ports/security/clamav-devel [...] pkg-install [...] X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 10:18:03 -0000 rob@debank.tv wrote: >>rob@debank.tv wrote: >> >> >>>>Hi, >>>> >>>> >>>>>>>>>On Mon, 24 May 2004 16:02:23 -0700 (PDT) >>>>>>>>>Pav Lucistnik said: >>>> >>>>[...] >>>>pav> - Chmod 770 socket directory >>>>pav> - Diff reduction against security/clamav port >>>> >>>>pav> PR: ports/67125 >>>>pav> Submitted by: Rob Evers (maintainer) >>>> >>>>Could you please change mode of /var/run/clamd to 750? Unless this >>>>change, sendmail complains about it and doesn't run. >>>> >>>>Index: pkg-install >>>>diff -u pkg-install.orig pkg-install >>>>--- pkg-install.orig Tue May 25 15:57:11 2004 >>>>+++ pkg-install Tue May 25 17:56:03 2004 >>>>@@ -38,7 +38,7 @@ >>>> >>>>echo "===> Setting permissions..." >>>>mkdir -p "${CLAMRUN}" >>>>-chmod 770 "${CLAMRUN}" >>>>+chmod 750 "${CLAMRUN}" >>>>chown "${CLAMAVUSER}:${CLAMAVGROUP}" "${CLAMRUN}" >>>> >>>>mkdir -p "${CLAMLOG}" >>>> >>>>Sincerely, >>>> >>>>-- >>>>Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan >>>>ume@mahoroba.org ume@{,jp.}FreeBSD.org >>>>http://www.imasy.org/~ume/ >>> >>>I can confirm this, >>> >>>Sendmail doesn't like group writable socket directorys, please apply >>>this >>>fix. (Bump PORTREVISION) >>> >>>Rob Evers >> >>I still don't get the purpose of not allowing non-root processes >>to use clamav. This would break my exim installation, fortunately >>I'm using security/clamav, where this change hasn't been made. >> >>-Oliver > > Isn't there a security risk allowing every user to read the clamd socket ? > (that's why I made this change). None that I would be aware of. Of course local users could run a denial-of-service attack using clamdscan, but I don't think this is an adequate counter measure. What made you think that having every user being able to read the clamd socket is a security risk? -Oliver