Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2009 20:06:56 +0000 (GMT)
From:      Lewis <moggie@elasticmind.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/131060: [maintainer-update|patch] irc/ircd-ratbox: Permissions fix for ratbox 2.2.x
Message-ID:  <20090127200656.9492B26D053@mail.elasticmind.net>
Resent-Message-ID: <200901272030.n0RKU4rI075805@freefall.freebsd.org>

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

>Number:         131060
>Category:       ports
>Synopsis:       [maintainer-update|patch] irc/ircd-ratbox: Permissions fix for ratbox 2.2.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 27 20:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Lewis
>Release:        FreeBSD 6.4-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Fri Dec 5 00:14:33 GMT 2008 amd64


	
>Description:
In order to modify ban files such as kline.conf and xline.conf, ircd-ratbox 2.2.x needs write permissions to the directory containing these files so it can manipulate their temporary counterparts during the update process. To facilitate this, and to save the user from having to make this change themselves, the '/usr/local/etc/ircd-ratbox/' directory is now set to be owned by the IRCD user instead of root.

Worth noting that this issue does not affect ircd-ratbox 3.x since it stores its ban data using sqlite in a different location, and that the IRCD configuration file (ircd.conf) itself should still be owned by root as an additional security measure. Thanks go to steinex@efnet for this.
>How-To-Repeat:
	
>Fix:

	

--- ircd-ratbox-2.2.8_update.diff begins here ---
diff -ruN ircd-ratbox.orig/Makefile ircd-ratbox/Makefile
--- ircd-ratbox.orig/Makefile	2009-01-27 17:44:57.000000000 +0000
+++ ircd-ratbox/Makefile	2009-01-27 17:49:13.000000000 +0000
@@ -179,9 +179,10 @@
 
 pre-su-install:
 	@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-	${MKDIR}  ${PREFIX}/etc/${PORTNAME}
-	${MKDIR}  ${DATADIR}/help
-	${MKDIR}  ${PREFIX}/lib/${PORTNAME}/modules
+	${MKDIR} ${PREFIX}/etc/${PORTNAME}
+	${CHOWN} ircd:ircd ${PREFIX}/etc/${PORTNAME}
+	${MKDIR} ${DATADIR}/help
+	${MKDIR} ${PREFIX}/lib/${PORTNAME}/modules
 
 post-install:
 .if !defined(NOPORTDOCS)
--- ircd-ratbox-2.2.8_update.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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