Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2006 14:11:44 -0800 (PST)
From:      Nick Barkas <snb@moduli.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/105458: [PATCH] Small permissions problem in www/typo
Message-ID:  <20061112221144.59CE117042@maguro.moduli.net>
Resent-Message-ID: <200611122220.kACMKKvO022269@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061112221144.59CE117042>