From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jul 31 14:30:27 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9851D16A41F for ; Sun, 31 Jul 2005 14:30:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBCD243D46 for ; Sun, 31 Jul 2005 14:30:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6VEUPFA035377 for ; Sun, 31 Jul 2005 14:30:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6VEUPBM035376; Sun, 31 Jul 2005 14:30:25 GMT (envelope-from gnats) Date: Sun, 31 Jul 2005 14:30:25 GMT Message-Id: <200507311430.j6VEUPBM035376@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Blaz Zupan Cc: Subject: Re: ports/83988: [PATCH] security/amavisd-new: properly set default values X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Blaz Zupan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2005 14:30:27 -0000 The following reply was made to PR ports/83988; it has been noted by GNATS. From: Blaz Zupan To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/83988: [PATCH] security/amavisd-new: properly set default values Date: Sun, 31 Jul 2005 16:23:24 +0200 (CEST) I have confirmation from the amavisd-new author that starting amavisd as root is safe, because it drops privileges as soon as possible. The only caveat is that p5-Net-Server 0.88 is needed, which is included in the ports collection. If somebody upgrades amavisd-new but does not upgrade p5-Net-Server, amavisd-new will not start until p5-Net-Server is upgraded. Below is the patch that should be commited. This makes amavisd-new work automatically both with and without chroot (but only if p5-Net-Server 0.88 is also installed). diff -urN amavisd-new.orig/Makefile amavisd-new/Makefile --- amavisd-new.orig/Makefile Sun Jul 17 23:42:11 2005 +++ amavisd-new/Makefile Sun Jul 31 16:05:58 2005 @@ -8,7 +8,7 @@ PORTNAME= amavisd-new PORTVERSION= 2.3.2 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ \ diff -urN amavisd-new.orig/files/amavisd.sh.in amavisd-new/files/amavisd.sh.in --- amavisd-new.orig/files/amavisd.sh.in Wed Jul 6 10:47:09 2005 +++ amavisd-new/files/amavisd.sh.in Sun Jul 31 16:15:45 2005 @@ -33,7 +33,6 @@ # set defaults amavisd_enable=${amavisd_enable:-"NO"} -amavisd_flags=${amavisd_flags:-"-u %%AMAVISUSER%%"} load_rc_config $name run_rc_command "$1"