ports/105458: [PATCH] Small permissions problem in www/typo
Nick Barkas
snb at moduli.net
Sun Nov 12 22:21:38 UTC 2006
>Number: 105458
>Category: ports
>Synopsis: [PATCH] Small permissions problem in www/typo
>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: Sun Nov 12 22:20:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Nick Barkas
>Release: FreeBSD 6.1-SECURITY i386
>Organization:
>Environment:
System: FreeBSD maguro.moduli.net 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Mon Aug 28 05:21:08 UTC 2006 root at builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
www/typo installs its tmp directory with root:wheel ownership, and does not make
this writeable by the web server. This makes it so Typo/Rails cannot create
cache files if running out of this directory (or write out sessions if you are
using the filesystem for sessions).
>How-To-Repeat:
>Fix:
Here is a patch to the port's Makefile that chowns Typo's tmp directory to
www:www, as is done with the log and public directories.
--- Makefile.orig Sun Aug 27 22:55:02 2006
+++ Makefile Sun Nov 12 14:03:11 2006
@@ -26,6 +26,7 @@
${CP} -R ${WRKSRC} ${PREFIX}/${TYPODIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPODIR}/log
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPODIR}/public
+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPODIR}/tmp
post-install:
@${FIND} ${PREFIX}/${TYPODIR} -not -type d \
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list