ports/127216: [patch] Port: amavisd-new-2.6.1, 1 fix /tmp mode: 755 -> 750
Juan J Lopez
jlopez at evsis.com.ar
Mon Sep 8 19:00:06 UTC 2008
>Number: 127216
>Category: ports
>Synopsis: [patch] Port: amavisd-new-2.6.1,1 fix /tmp mode: 755 -> 750
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 08 19:00:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Juan J Lopez
>Release: Production Release 7.0
>Organization:
EVSIS
>Environment:
FreeBSD bilbo.blackstar.com.ar 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Thu Jun 19 22:33:08 ART 2008 root at eowyn.blackstar.com.ar:/usr/obj/usr/src/sys/EVSIS amd64
>Description:
When using amavisd-new-2.6.1,1 with amavisd_milter and the "amavisd_ram" rc_var enabled, amavisd_milter refuse to restart: "work directory /var/amavis/tmp is world accessible".
>How-To-Repeat:
/usr/local/etc/rc.d/amavisd-milter restart
>Fix:
fix /var/amavis/tmp directory mode: 755 -> 750
Please see attached patch.
Patch attached with submission follows:
--- amavisd.sh.in 2007-06-09 08:13:44.000000000 -0300
+++ amavisd.sh.in.new 2008-09-08 15:21:56.000000000 -0300
@@ -33,7 +33,7 @@ rm -rf %%AMAVISDIR%%/tmp/* %%AMAVISDIR%%
if [ ${amavisd_ram} ];then
df %%AMAVISDIR%%/tmp | grep '^/dev/md' > /dev/null
if [ $? -eq 1 ];then
- mdmfs -M -s ${amavisd_ram} -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true
+ mdmfs -M -s ${amavisd_ram} -p 750 -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true
fi
fi
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list