From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 12 22:21:37 2006 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 EEEE916A416 for ; Sun, 12 Nov 2006 22:21:37 +0000 (UTC) (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 B33BB43D66 for ; Sun, 12 Nov 2006 22:20:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kACMKK0Y022270 for ; Sun, 12 Nov 2006 22:20:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kACMKKvO022269; Sun, 12 Nov 2006 22:20:20 GMT (envelope-from gnats) Resent-Date: Sun, 12 Nov 2006 22:20:20 GMT Resent-Message-Id: <200611122220.kACMKKvO022269@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Barkas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2E6116A4D4 for ; Sun, 12 Nov 2006 22:12:17 +0000 (UTC) (envelope-from snb@moduli.net) Received: from maguro.moduli.net (maguro.moduli.net [69.80.211.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id D731A43D53 for ; Sun, 12 Nov 2006 22:11:44 +0000 (GMT) (envelope-from snb@moduli.net) Received: by maguro.moduli.net (Postfix, from userid 1001) id 59CE117042; Sun, 12 Nov 2006 14:11:44 -0800 (PST) Message-Id: <20061112221144.59CE117042@maguro.moduli.net> Date: Sun, 12 Nov 2006 14:11:44 -0800 (PST) From: Nick Barkas To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/105458: [PATCH] Small permissions problem in www/typo X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nick Barkas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 22:21:38 -0000 >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: